Offline Installation
Before starting the installation, make sure the requirements are met.
Configure the registry
If your cluster is in an air-gapped network or is unable to reach the default repository, you need to mirror the required images on a private repository.
The procedure described here leverages your local environment to upload the images, so it requires that Docker is installed and configured to interact with the private registry.
Obtain the Docker images
Get in contact with Akamas Customer Services to get the latest versions of the Akamas artifacts. This will include:
images.tar.gz
: a tarball containing the Akamas images.akamas
: the binary file of the Akamas CLI that will be used to verify the installation.
Upload the Docker images
The offline installation mode requires importing the shipped Docker images into your local environment. Run the following command in the same directory where the tar file is stored:
Once the import is complete, you need to re-tag and upload the images. Run the following snippet, replacing <REGISTRY_URL>
with the actual URL of the private registry:
Once the upload is complete, you can proceed with the next steps.
Create the configuration file
Akamas on Kubernetes is provided as a set of templates packaged in a chart archive managed by Helm.
To proceed with the installation, you need to create a file, called akamas.yaml
in this guide, containing the mandatory configuration values required to customize your application. The following template contains the minimal set of values required to install Akamas:
This minimal configuration is enough to have Akamas up and running on your cluster, even though the endpoint will only be accessible through Kubectl's port forwarding.
The page Accessing Akamas provides some configuration examples using different types of services: edit the akamas.yaml
file using the strategy that better suits your needs, or continue directly with the sections and configure the endpoints at a later time.
Configure the authentication
This section describes how to configure the authentication to your private registry. If your registry does not require any authentication, skip directly to the installation section.
To authenticate to your private registry, you must manually create the Secret required to pull the images. If the registry uses basic authentication, you can create the credentials in the namespace by running the following command:
Otherwise, you can leverage any credential already configured on your machine by running the following command:
Start the installation
Add the Akamas' repository to the Helm client with the following command:
If you wish to see the values that will be used by helm to install Akamas and override some of them, you may execute the following commands (where akamas-<version>.tgz is the filename downloaded by helm pull):
Now, with the configuration file you just created (and the new variables you added to override the defaults), you can start the installation with the following command:
This command will create the Akamas resources within the specified namespace. You can define a different namespace by changing the argument --namespace <your-namespace>
An example output of a successful installation is the following:
Check the installation
To monitor the application startup, run the command kubectl get pods
. After a few minutes, the expected output should be similar to the following:
At this point, you should be able to access the Akamas UI on http://localhost:8000
and the Akamas CLI http://localhost:8000/akapi
by running Kubectl's port forwarding command:
Mind that, before logging in, you need to configure the Akamas CLI and install a valid license.
If you haven't already, you can update your configuration file to use a different type of service to expose Akamas' endpoints. To do so, pick from the Accessing Akamas the configuration snippet for the service type of your choice, add it to the akamas.yaml
file, and re-run the installation command to update your Helm release.
Last updated