Skip to content

Instantly share code, notes, and snippets.

@duffney
Last active November 5, 2019 14:46
Show Gist options
  • Save duffney/a2b5dc2f1047a4a3dcd619e073ecbbc5 to your computer and use it in GitHub Desktop.
Save duffney/a2b5dc2f1047a4a3dcd619e073ecbbc5 to your computer and use it in GitHub Desktop.
  1. Edit ReplicationController or ReplicaSet.
    kubectl edit replicaset archetype
    
  2. Update Pod template to use a newer image.
    #within the config modify the template image
    #confirm settings with
    kubectl get replicaset archetype  -o yaml
    
  3. Delete all running pods.
    kubectl delete pods -l app=archetype
    
  4. ReplicationController or ReplicaSet creates new pods with update image.
    kubectl get pods --show-labels
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment