Management container/pod
Akamas provides a Management Container (or called Management Pod, for Kubernetes deployments) that contains the Akamas CLI executable and other popular command line tools to develop custom scripts.
On docker, it runs in the same network of the Akamas' services or, when running on Kubernetes, in the Akamas' namespace. The purposes of this management container are:
Allow technical troubleshooting/maintenance from inside the Kubernetes cluster.
Allow customers to launch/control Akamas without the need to install Akamas CLI on their systems. The
akamas
executable is configured to connect to the correct endpoint.Provide an environment for the Akamas workflow to execute custom scripts.
The following is the list of the installed tools:
akamas-cli
curl, ping, wget
docker, docker-cli, docker-compose
git
gzip, zip
jq, yq, vim
kubectl, Helm
openjdk 11
openssh-client, openssh-server, ssh-keygen
Docker compose installation
To run the management container on your docker installation, add the following code block to the list of services
of your docker-compose file.
Kubernetes installation
To run the management pod in the Akamas' namespace, update the following variable in the Values file of the Akamas' Helm chart:
Accessing Management Pod on Kubernetes
When it's deployed to Kubernetes, you may access this management pod in two ways:
via kubectl exec -it management-pod
via SSH command
NOTE: both methods require kubectl
to be installed and configured for this cluster.
Kubectl access
Accessing is as simple as:
SSH access
For this type of access, you need to retrieve the password for the akamas
user. You should issue the following command to read it from management-pod logs:
A similar result could be obtained by reading the file akamas_password in the work folder:
At this point, you should launch this command to port-forward the management port to your local terminal (number 2300 can as well be any other number: it should be an unused port on your machine):
then, on another terminal, you may launch:
and answer yes
to the question, then insert the akamas
password to successfully SSH access the management pod (see example below):
Work folder
If you need to store Akamas artifacts, scripts, or any other file that need persistence, you can use the /work
directory, which persists across restarts. This is the default folder at login time. It contains the akamas_password
file mentioned above, the Kubernetes and SSH configuration files, which will be symlinked to your home folder.
Last updated