Lab Optional - Use kubectl to view vK8s Output ============================================== F5 Distributed Cloud App Stack provides the ability to manage your vK8s namespace via command line with kubectl In this lab, we will learn perform the following: • Review kubectl commands and see the output **Core Concepts** *Virtual Kubernetes vK8s* `F5 Distributed Cloud Services support a Kubernetes compatible API for centralized orchestration of applications across a fleet of sites (customer sites or F5 Distributed Cloud Regional Edge). This API is "Kubernetes compatible" because not all Kubernetes APIs or resources are supported. However, for the API(s) that are supported, it is hundred percent compatible. We have implemented a distributed control plane within our global infrastructure to manage scheduling and scaling of applications across multiple (tens to hundreds of thousands of) sites, where each site in itself is also a managed physical K8s cluster.` *kubectl* `Standard upstream kubectl CLI tool can be used on the vK8s API URL or the downloaded kubeconfig file can be used to access the vK8s APIs.` For more core concepts, please review `F5 Distributed Cloud documentation `_ **Commands to run via cli to Access Virtual K8s** *Commands* `Run the following commands and view the outputs. Why are there different outputs before and after increasing the replicas?` *View Nodes* `kubectl get nodes` `kubectl get nodes -o wide` *View pods* `kubectl get pods` `kubectl get pods -o wide` `kubectl describe pod ` *View deployment and service* `kubectl get deployment -workload` `kubectl get svc -workload` *View all resources in your namespace* `kubectl get all` *View output of the pod in yaml format* `kubectl get pods -o yaml` *View output of the deployment in yaml format* `kubectl get deployment -workload -o yaml` *View output of the service in yaml format* `kubectl get svc -workload -o yaml` *Save the output of the deployment in yaml format* `kubectl get deployment -workload -o yaml > agility.yaml` *View the saved yaml deployment* `find the file in the current directory: ls -larth` `view the file: cat agility.yaml`