Exercise 4.4: Using Labels
kubectl create deployment nginx --image=nginxkubectl get deploy nginx -o widekubectl get pod -l app=nginxkubectl get pod --show-labelskubectl label pod \ $(kubectl get pod -l app=nginx -o=jsonpath='{.items[*].metadata.name}') \ app=orange --overwritekubectl get podskubectl get deploy nginx -o widekubectl get pods --show-labelskubectl delete deploy nginxkubectl get pods --show-labelskubectl delete pod -l app=orange
PreviousExercise 4.3: Designing Applications With Duration: Create a CronJobNextExercise 4.5: Setting Pod Resource Limits and Requirements
Last updated