Skip to content

Instantly share code, notes, and snippets.

@SeanHood
Created June 18, 2021 15:29
Show Gist options
  • Save SeanHood/1caf91ac8b9d7a58b8c1404068c4fce9 to your computer and use it in GitHub Desktop.
Save SeanHood/1caf91ac8b9d7a58b8c1404068c4fce9 to your computer and use it in GitHub Desktop.
$ kubectl label po green-5c8f858bbb-mqxrd app=blue pod-template-hash=5bc56d75b --overwrite
NAME                     READY   STATUS              RESTARTS   AGE   LABELS
blue-5bc56d75b-5j462     1/1     Running             0          15m   app=blue,pod-template-hash=5bc56d75b
blue-5bc56d75b-wwn8c     1/1     Terminating         0          27s   app=blue,pod-template-hash=5bc56d75b
green-5c8f858bbb-bsjwv   0/1     ContainerCreating   0          0s    app=green,pod-template-hash=5c8f858bbb
green-5c8f858bbb-mqxrd   1/1     Running             0          15m   app=blue,pod-template-hash=5bc56d75b
green-5c8f858bbb-s564q   1/1     Running             0          15m   app=green,pod-template-hash=5c8f858bbb
green-5c8f858bbb-x7hmh   1/1     Running             0          15m   app=green,pod-template-hash=5c8f858bbb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment