After you have provisioned a Tanzu Kubernetes cluster, it is good practice to deploy a test workload and validate cluster functionality.

You can use the sample application Kubernetes Up and Running Demo to help you verify that the newly provisioned cluster is functioning properly.

Prerequisites

Procedure

  1. Switch context to use the target Tanzu Kubernetes cluster configuration context by running the following command.
    kubectl config use-context TANZU-CLUSTER-NAME
  2. Deploy the kuard application to your Tanzu Kubernetes cluster by running the following command.
    kubectl run --restart=Never --image=gcr.io/kuar-demo/kuard-amd64:blue kuard
  3. Forward the container port 8080 to your local host port 8080 by running the following command.
    kubectl port-forward kuard 8080:8080
  4. Run your browser and go to http://localhost:8080.
    You see the kuard web page, which you can explore. When you are done, press Ctrl+C in the kubectl session to stop port forwarding.
  5. To verify that the pod is created, run the following command.
    kubectl get pods
    Expected result:
    NAME                     READY   STATUS    RESTARTS   AGE
    kuard                    1/1     Running   0          10d
    
  6. To delete the kuard pod you created, run the following command.
    kubectl delete pod kuard
    Expected result:
    pod "kuard" deleted
  7. To verify that the pods you created are deleted, run the following command.
    kubectl get pods

What to do next

Verify cluster node networking. See Tanzu Kubernetes Cluster Networking Commands.