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
No comments:
Post a Comment