Skip to content

Latest commit

 

History

History
26 lines (24 loc) · 637 Bytes

File metadata and controls

26 lines (24 loc) · 637 Bytes
kubectl config use-context cluster1-admin@cluster1
k get po -n rsapp
NAME               READY   STATUS             RESTARTS   AGE
rs-app2223-78skl   0/1     ImagePullBackOff   0          7m55s
rs-app2223-wg4w7   0/1     ImagePullBackOff   0          7m55s

  1. Edit replicaset executing the following command:
k edit rs -n rsapp rs-app2223
# Then change container image from rrredis:aline to redis:alpine
  1. As it is replicaset we need to delete existing pods to allow ReplicaSet recreate them.
k  delete po -n rsapp -l app=rs-app2223
  1. Ensure that new pods are running
k get po -n rsapp