Kommander supports configuring default catalogs for clusters with Enterprise license.
Configure a default Enterprise catalog
To configure Kommander to use a default catalog repository, create the following yaml file:
apiVersion: config.kommander.mesosphere.io/v1alpha1
kind: Installation
catalog:
repositories:
- name: dkp-catalog-applications
labels:
kommander.d2iq.io/project-default-catalog-repository: "true"
kommander.d2iq.io/workspace-default-catalog-repository: "true"
kommander.d2iq.io/gitapps-gitrepository-type: "dkp"
gitRepositorySpec:
url: https://github.com/mesosphere/dkp-catalog-applications
ref:
tag: v2.2.2
Use this configuration when installing or reconfiguring Kommander by passing it to the dkp install kommander
command:
dkp install kommander --installer-config <config_file.yaml>
The following section describes each label:
Label | Description |
---|---|
kommander.d2iq.io/project-default-catalog-repository |
Indicates this acts as a Catalog Repository in all projects |
kommander.d2iq.io/workspace-default-catalog-repository |
Indicates this acts as a Catalog Repository in all workspaces |
kommander.d2iq.io/gitapps-gitrepository-type |
Indicates this Catalog Repository (and all its Applications) are certified to run on DKP |
Air-gapped Catalog Configuration
When running in air-gapped environments, update the configuration by replacing gitRepositorySpec
with the path
field pointing to a local path of the DKP catalog applications git repository.
-
Download the DKP catalog application Git repository archive:
wget "https://downloads.d2iq.com/dkp/v2.2.2/dkp-catalog-applications-v2.2.2.tar.gz" -O dkp-catalog-applications.tar.gz
-
Update the Kommander configuration file with:
apiVersion: config.kommander.mesosphere.io/v1alpha1 kind: Installation catalog: repositories: - name: dkp-catalog-applications labels: kommander.d2iq.io/project-default-catalog-repository: "true" kommander.d2iq.io/workspace-default-catalog-repository: "true" kommander.d2iq.io/gitapps-gitrepository-type: "dkp" path: ./dkp-catalog-applications.tar.gz
-
Use this configuration when installing or reconfiguring Kommander by passing it to the
dkp install kommander
command:dkp install kommander --installer-config <config_file.yaml>