Install Kyverno

Kyverno allows for the management of specific environmental configurations independently from resource configurations, applying advanced configuration methods for clusters, in particular by blocking or altering API requests.

The installation consists of three steps:

  1. Download the Helm chart and the configuration file.
  2. Set up the policy and fill in the configuration file.
  3. Install the Kyverno chart using helm in a Kubernetes cluster.

Step 1: Download the Helm chart and the configuration file

To install via the internet, obtain the configuration file values-kyverno.yaml by executing the command:

helm repo add hummix https://charts.hummix.co
helm repo update
helm show values hummix/kyverno > values-kyverno.yaml

Obtaining the configuration file for installation in a closed loop without internet access

Step 2: Set up the policy and fill in the configuration file

Fill in the configuration file values-kyverno.yaml to enable the required policies.

Step 3: Install the Kyverno chart using helm in a Kubernetes cluster

Install the Kyverno chart in namespace, which was created in step 1 (in this article it's referred to as kyverno).

For online installation:

helm upgrade --install kyverno hummix/kyverno -f values-kyverno.yaml -n kyverno --create-namespace 

For offline installation without internet access:

helm upgrade --install kyverno ./kyverno -f values-kyverno.yaml -n kyverno --create-namespace

Attention:

The installation of the Kyverno add-on component does not automatically attach the volume containing the CA certificate to the already running pods of the HUMMIX application.

After installing Kyverno, do not forget to restart the HUMMIX application services.

Delete Kyverno chart using helm in a Kubernetes cluster

Attention

Before deleting Kyverno, reconfigure the HUMMIX application to receive the CA certificate from other sources or disable TLS

To delete the Kyverno chart in namespace kyverno, execute the command.

helm uninstall kyverno -n kyverno