To use Airlock Microgateway in your Kubernetes cluster, follow this guide to deploy the Airlock Microgateway Operator and its resources.
Prerequisites
- To use Airlock Microgateway, a valid license is required. Airlock Microgateway is available in a Premium and a free Community edition. To request and configure/change a license, see the article Configuration and monitoring of licenses.
- Install a
cert-manager
in your Kubernetes cluster. - Choose the required installation mode according to the article Installation mode types.
- Airlock Microgateway CNI Helm charts are available here (mind your Microgateway release version):
- Helm value files for Airlock Microgateway CNI installations on GKE and OpenShift are available as separate
values.yaml
files:
For installation in OpenShift environments, also see the article OpenShift.
Install a cert-manager
You can install the cert-manager with the commands below in the 'VERSION'
that you wish to install. You may use the latest cert-manager version (see cert-manager Helm installation instructions), which should work fine in most cases, or install the version we use for internal testing (see tested version of cert-manager for Microgateway 4.3).
Airlock Microgateway CNI installation
Install the CNI DaemonSet and required RBAC (Role Based Access Control) manifests using our Helm charts.
The default values have been tested in our installation environments. However, some values may need to be adapted to meet the requirements of your setup environment. Path information for the CNI config files and binaries can either be found in the documentation of your Kubernetes distribution or CNI provider or queried with the following commands.
The cniNetDir
, the directory of the CNI config files on the host, can be queried with:
The cniBinDir
, the directory of the CNI plugin binaries on the host, can be queried with:
- Helm-based installation procedure:
- Adapt and run the following command with the current CNI Helm chart version.
- Wait for the Airlock Microgateway CNI DaemonSet to be up and running.
- Verify the correctness of the installation with
helm test
. - Check the log messages.
- On successful installation, the logs should show the message
Success
. If the installation was not successful, go to Troubleshooting Microgateway CNI Helm test for troubleshooting. - Disable the
helm test
deployment afterward.
Install the Airlock Microgateway Operator
In order to complete the Airlock Microgateway Operator installation and to run the below helm test
successfully, you need to deploy a valid license. See article Configuration and monitoring of licenses for more information.
- Create the
airlock-microgateway-system
namespace - Store the license in the Microgateway Operator namespace, in a Kubernetes secret with the name
airlock-microgateway-license
and the keymicrogateway-license.txt
. Use the following command: - Adapt and run the following command with the current Airlock Microgateway Operator Helm chart version. This will install
airlock-microgateway
in theairlock-microgateway-system
namespace. - Verify that the Airlock Microgateway Operator started successfully:
- Verify the correctness of the installation with
helm test
. - Check the log messages.
- On successful installation, the logs should show the following message:
### Installation of 'airlock-microgateway' succeeded
. If the installation was not successful, go to Troubleshooting Microgateway Operator Helm test for troubleshooting. - Disable the
helm test
deployment afterward.
During installation, the installation status is echoed – i.e., the preliminary cleanup task and scaling the test installation to only 1 replica (to ensure no pods from previous runs are present).
What's next
- After deploying the Airlock Microgateway Operator in your Cluster, the following steps are required:
- Configure/change the Airlock Microgateway license. See article Configuration and monitoring of licenses.
- Annotate the web application Pods to protect as explained in Labels and annotations for Airlock Microgateway.
- Create the
CustomResources
to configure the Airlock Microgateway as outlined in Configuration.