Set up your local data service location#
The quickest way to get started with Ametnes Cloud is to set up your local workstation as an Ametnes Data Service Location.
In this article, you will learn how easy it is to deploy data services on your local workstation. We will create a SeekTable service on your local workstation and connect to it locally.
Brief summary#
Here is a summary of the steps you will need to follow. Firstly, install the prerequisite software if not present then we create a kubernetes cluster and set it up as an Ametnes Data Service location and then finally, we create a simple data application.
Signup#
If you do not have an Ametnes Cloud account, sign up here to create one.
Setting up an Ametnes Data Services Location#
An Ametnes Application Location is basically a kubernetes cluster that is set up and connected to the Ametnes Cloud control plane. It will generally be a dedicated cluster but that is not mandatory.
Install Prerequisites.#
Depending on your operating system, the prerequisites to get you started will differ.
Setup the chocolatey package manager. For this you need to start PowerShell with elevated permissions as an Administrator. Once this is done, run the following command.
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Install docker desktop with
You will need to restart your computer with to complete the setup of docker.Install docker using Homebrew with
After the installation is done, launch docker and enter your password when prompted to give docker priviledge access.
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" -y
sudo apt install docker-ce -y
sudo usermod -aG docker $USER
sg docker -c "bash"
sudo systemctl status docker
Install helm package manager
Enable kubernetes in Docker Desktop#
-
From the Docker Dashboard, select the Settings icon.
-
Select Kubernetes from the left sidebar menu.
-
Next to Enable Kubernetes, select the checkbox.
-
Select Apply & Restart to save the settings and then select Install to confirm.
- This instantiates images required to run the Kubernetes server as containers, and installs the /usr/local/bin/kubectl
Install the Ametnes Cloud Agent#
-
Add the helm repository.
-
In your Ametnes Cloud console account, get the default Application Location with
- Login into your Ametnes Cloud account here.
- Navigate to the Service Locations menu on the left
- Copy the default location's UUID
-
Install the Ametnes Cloud Agent and set the
agent.config.location
to the UUID generated above. -
After a short while, the data service location should come
online
.
Create the service#
Log into your Ametnes Cloud console at here or sign up here if you do not have one.
- Using the Services left menu, navigate to the service management dashboard.
- Click New Service.
- Enter the SeekTable to filter from the list and select Create
- In the displayed form, enter the following info.
- Enter the Name:
SeekTable-Service-DSL1
and Description:SeekTable-Service-DSL1
. - Select a Version from the list.
- Select the Location:
Demo/DSL1
. - Click
Create
.
- Enter the Name:
Test connectivity#
-
Using the Services left menu, navigate to the service management dashboard. Your service should be listed.
Service not showing
If your service list is empty, use the filter at the top right corner, to filter for ALL services.
-
After a while, your data service status will change to
ready
. - To the right of your service, click the
Admin
button and you will navigate to your service's details page. - At the bottom of the page, copy the endpoint of your service as well as your username/key and password.
- In your browser, paste the URL
https://<your.instance.host.name>/
. - You should get a prompt to login.
Clean up#
Delete all services#
- In your Ametnes Cloud console, navigate to the Admin section of each service
- Delete the service.
Uninstall the cloud agent#
In your terminal, enter
Uninstall helm#
Summary#
In this post, we explored how to set up your local workstation as an Ametnes Data Service location. This then allowed us to deploy a SeekTable service that we were able to connect to.