This script is focused on simplifying the deployment of Tanzu Application Platform
Current Release: TAP 1.5.1 Tested Platforms: GKE Source Laptop: MacOS
I have been using GKE as detailed below but k8s services comprised as:
- local (kind), TKG 2.1+, GKE, AKS, EKS cluster
- Version support is 1.23, 1.24 and 1.25
- Network policies enabled
Also ensure the cluster context is set to target cluster
- Manual install of cluster not autopilot
- I target regional for availability but find 4 nodes of config e2-standard-2 or the like provides enough resources (2vcpu, 8GB RAM, 100GB disk per node)
- Set version control to static, version 1.19, 1.20 or1.21
- disable auto upgrade
- Enable K8s Network Policy
- Ensure Load Balancer is enabled
Set your variables in the tap_config.sh file.
- If password files not used such as with the GCR service account key file, then add values directly into the variables and keep the file variables empty
- If a custom DNS domain is required for CNR then set the CUSTOM_DOMAIN variable. Leaving it empty will not set any value so will be knative default welcome.com
- Set deployment model variable *'DEPLOYMENT_MODEL as either 'local' or 'cluster' to ensure that network services are corectly using either NodePort or LoadBalancer
- Set a namespace target to be initially enabled for workloads
install Carvel cli tools https://github.com/vmware-tanzu/carvel-kapp/releases. Release v0.42.0 tested with this script)
Install Tanzu CLI 0.5.0 from TAP source on Tanzu Network and follow the procedures to initialise the required plug-ins at at Tanzu CLI Install Instructions
Run script sh ./tap-install.sh
- Cloud Native Runtimes
- App Accelerator
- Convention Service
- Source Controllers
- Supply Chain Choreographer
- Default Supply Chain
- Developer Convcentions
- Application Live View
- Service Bindings
- Supply Chain Security Tools
- Supply Chain Security Tools - Sign
- Supply Chain Security Tools - Scan
- API portal
- Services Control Plane (SCP) Toolkit
A few points to note:
- cosign imagepolicy applied
- image policy set to warn not enforce
You can add more namespaces ready for workloads by the following steps
- Create Namespace
- Set ImagePull secret with Tanzu CLI
- Apply the Developer security artefect dev-namespace-enable.yaml
- Edit the App Live view configuration file app-live-view-values and update package woth the command: tanzu package installed update app-live-view appliveview.tanzu.vmware.com app-live-view-values.yaml