This topic describes how to add custom workloads to VMware Tanzu Kubernetes Grid Integrated Edition (TKGI) clusters.


Custom workloads define what a cluster includes out of the box. For example, you can use custom workloads to configure metrics or logging.

To add custom workloads to a TKGI-provisioned Kubernetes cluster:

  1. Create YAML Configuration
  2. Apply Custom Workloads

Create YAML Configuration

Create a YAML configuration for your custom workloads. Consult the following example from the Kubernetes documentation:

apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
  name: nginx-deployment
      app: nginx
  replicas: 2 # tells deployment to run 2 pods matching the template
  template: # create pods using pod definition in this template
      # unlike pod-nginx.yaml, the name is not included in the meta data as a unique name is
      # generated from the deployment name
        app: nginx
      - name: nginx
        image: nginx:1.7.9
        - containerPort: 80

Apply Custom Workloads

To apply custom Kubernetes workloads to every cluster created on a plan, enter your YAML configuration in the (Optional) Add-ons - Use with caution field in the pane for configuring a plan in the Tanzu Kubernetes Grid Integrated Edition tile.

For more information, see the Plans section of the Installing Tanzu Kubernetes Grid Integrated Edition topic for your IaaS. For example, Plans in Installing Tanzu Kubernetes Grid Integrated Edition on vSphere.

check-circle-line exclamation-circle-line close-line
Scroll to top icon