Adding Applications To A Cluster

This guide targets Cluster Admins and details how KKP Applications can be integrated into a cluster. For more details on Applications, please refer to our Applications Primer.

Managing Applications via the UI

Adding Applications to an Existing Cluster

All App functionality resides in the Applications Tab, from which a new Application can be added.

Applications Tab

An application catalogue will be displayed. If no Applications are being displayed, please contact your KKP administrator to create an Application Catalogue

Application Catalogue

After choosing an Application, its installation can be further customized.

Application Settings

Application Values

The following can be customized:

  • Version -> The version of the Application that should be displayed
  • Namespace -> The namespace the workload should be installed in. If the namespace does not exist, KKP will automatically create it
  • Name -> The name of the Application
  • Values -> Value override for Installation. This will be left-merged with the default values of your Application.

The combination of Namespace and Name must be unique within your cluster.

After you have selected your customizations, the installation-status of your Application can be viewed in the Applications Tab.

Application Installation Status

Creating a New Cluster With Applications

In the cluster creation wizard, you can select applications to install into your cluster. KKP will automatically install your selection after the infrastructure is provisioned and the cluster is ready.

Applications can be added in the Applications Section of the wizard. For a detailed flow and explanation of all customizations see the “Adding Applications to an Existing Cluster” section of this guide.

Application Section in Cluster Creation Wizard

Afterwards, you can track the installation progress in the Applications Tab.

Application Installation Status

Storing Applications in a ClusterTemplate

ApplicationInstallations can also be added to ClusterTemplates in order to reuse them across multiple clusters. In order to do so, select the Save Cluster Template option during the Summary step of the cluster creation wizard.

Saving As Cluster Template

Managing Applications via GitOps

Starting with KKP 2.25, the valuesBlock field has been introduced, which retains comments. The old values field is deprecated.

KKP Applications are managed via the ApplicationInstallation custom Kubernetes resource. ApplicationInstallations reside in the user-cluster and represent a desired state of an Application. For a full reference of all supported fields, please check the ApplicationInstallation Reference

# Example of an ApplicationInstallation
kind: ApplicationInstallation
  name: prometheus
  namespace: prometheus
    name: prometheus
    version: 2.36.2
    create: true
    name: prometheus
  valuesBlock: |
      enabled: false    

After creating an ApplicationInstallation, you can directly apply it into the desired cluster using kubectl. This will trigger a controller within KKP, which will automatically install your Application. We recommend to apply the ApplicationInstallation to the same namespace as the workload and configuration you want to deploy.

kubectl apply -n <namespace> -f <your-appinstall>

You can check the progress of your installation in status.conditions.

kubectl -n <namespace> get applicationinstallation <name> -o jsonpath='{.status.conditions}'

There are 2 conditions:

  • ManifestsRetrieved -> application’s source has been correctly downloaded
  • Ready -> application has been correctly installed or upgraded

Additionally when using helm, the field status.helmRelease will contain additional information.

kubectl -n <namespace> get applicationinstallation <name> -o jsonpath='{.status.helmRelease}'