vSphere Air-gapped: Install Kommander
Follow these steps:
Create the configuration file by running
dkp install kommander --init --airgapped > kommander.yaml
for the air-gapped deployment.In
kommander.yaml
, if you are installing Kommander in an AWS VPC, set the Traefik annotation to create an internal facing ELB by setting the following:apiVersion: config.kommander.mesosphere.io/v1alpha1 kind: Installation apps: ... traefik: enabled: true values: | service: annotations: service.beta.kubernetes.io/aws-load-balancer-internal: "true" ...
CODEIn
kommander.yaml
, enable DKP Catalog Applications by setting the following: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-v2.5.0.tar.gz
CODETo customize your Kommander installation (custom domains and certificates, HTTP proxy, Storage Class, etc.), see Kommander Additional Install Configuration for more details.
To install the Kommander component of DKP in your air-gapped environment using the above configuration file, run the following command:
dkp install kommander --installer-config kommander.yaml --kubeconfig=${CLUSTER_NAME}.conf \ --kommander-applications-repository ./application-repositories/kommander-applications-v2.5.0.tar.gz \ --charts-bundle ./application-charts/dkp-kommander-charts-bundle-v2.5.0.tar.gz \ --charts-bundle ./application-charts/dkp-catalog-applications-charts-bundle-v2.5.0.tar.gz
CODEIn the previous command, the
--kubeconfig=${CLUSTER_NAME}.conf
flag ensures that you set the context to install Kommander on the right cluster. For alternatives and recommendations around setting your context, refer to Provide Context for Commands with a kubeconfig File.TIP: Sometimes, applications require a longer period of time to deploy, which causes the installation to time out. Add the
--wait-timeout <time to wait>
flag and specify a period of time (for example,1h
) to allocate more time to the deployment of applications.