Sunday 19 July 2020

Kubernetes: Get the labels associated with a Pod

Execute the below command to show the labels associated with a Pod.

kubectl get pods --show-labels

$kubectl get pods --show-labels
NAME               READY   STATUS    RESTARTS   AGE   LABELS
employee-service   1/1     Running   0          14m   app=employee-service,author=krishna,serviceType=webservice



Previous                                                    Next                                                    Home

No comments:

Post a Comment