Deploy your first air-gapped workload (beta)

This how-to guide walks developers through deploying your first workload on Tanzu Application Platform in an air-gapped environment.

For information about installing Tanzu Application Platform in an air-gapped environment, see Install Tanzu Application Platform in an air-gapped environment (beta).

What you will do

  • Create a workload from Git.
  • Create a basic supply chain workload.

Caution: Tanzu Application Platform in an air-gapped environment is currently in beta and is intended for evaluation and test purposes only. Do not use in a production environment.

Create a workload from Git

To create a workload from Git through https, follow these steps:

  1. Create a secret in your developer namespace with the caFile that matches the gitops_ssh_secret name in tap_values:

    kubectl create secret generic custom-ca --from-file=caFile=CA_PATH -n NAMESPACE
  2. If you would like to pass in a custom settings.xml for Java, create a file called settings-xml.yaml similar to the following example:

    apiVersion: v1
    kind: Secret
     name: settings-xml
    type: service.binding/maven
     type: maven
     provider: sample
     settings.xml: |
       <settings xmlns="" xmlns:xsi=""
                   <name>Tanzu seal Internal Repo</name>
  3. Apply the file:

    kubectl create -f settings-xml.yaml -n DEVELOPER-NAMESPACE

Create a basic supply chain workload

Next, create your basic supply chain workload. Due to a bug, you must pass in a build environment:

tanzu apps workload create APPNAME --git-repo  https://GITURL --git-branch BRANCH --type web --label --yes --param-yaml buildServiceBindings='[{"name": "settings-xml", "kind": "Secret"}]' --build-env "BP_MAVEN_BUILD_ARGUMENTS=-Dmaven.test.skip=true --no-transfer-progress package"

If you would rather pass the CA certificate in at workload create time, use the following command:

tanzu apps workload create APP-NAME --git-repo  https://GITREPO --git-branch BRANCH --type web --label --yes --param-yaml buildServiceBindings='[{"name": "settings-xml", "kind": "Secret"}]' --param "gitops_ssh_secret=git-ca" --build-env "BP_MAVEN_BUILD_ARGUMENTS=-Dmaven.test.skip=true --no-transfer-progress package"
check-circle-line exclamation-circle-line close-line
Scroll to top icon