Skip to main content
Skip table of contents

Add Kaptain to DKP Catalog Applications

Add Kaptain to DKP Catalog Applications in networked environments before deploying to clusters

Ensure that your kubectl configuration references the cluster on which you must execute the commands.

Ensure the cluster that you want to use to deploy Kaptain is the only cluster in its workspace. Kaptain is meant to be deployed on workspaces with a single cluster.

Requirements

For reference values of the required number of worker nodes, CPU, RAM, and storage resources, refer to the requirements section.

Prerequisites

Ensure you have reviewed and executed all steps in the prerequisites section.

Create a Git repository for Kaptain

Make Kaptain available for deployment by creating a Git Repository. Use the CLI to create the GitRepository resource and add a new repository.

Refer to air-gapped for DKP 2.2 and later installation instructions, if you are deploying in an air-gapped environment.

  1. Ensure your clusterKubeconfig.conf is set to your Essential or Management cluster, depending on your license.

  2. Add the Flux GitRepository to your Kommander install:

    CODE
    cat <<EOF | kubectl apply -f -
    apiVersion: source.toolkit.fluxcd.io/v1beta1
    kind: GitRepository
    metadata:
      name: kaptain-catalog-applications
      namespace: kommander
      labels:
        kommander.d2iq.io/gitrepository-type: catalog
        kommander.d2iq.io/gitapps-gitrepository-type: dkp
        kommander.d2iq.io/workspace-default-catalog-repository: "true"
    spec:
      interval: 1m0s
      ref:
        tag: v2.2.0
      timeout: 20s
      url: https://github.com/mesosphere/kaptain-catalog-applications
    EOF
  3. Ensure the status of the GitRepository signals a ready state:

    CODE
    kubectl get gitrepository kaptain-catalog-applications -n kommander

    The repository commit displays the ready state:

    CODE
    NAME         URL                                                        READY   STATUS                                                              AGE
    kaptain-catalog-applications https://github.com/mesosphere/kaptain-catalog-applications                True    Fetched revision: master/6c54bd1722604bd03d25dcac7a31c44ff4e03c6a   11m

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.