- Get manifest of the existing pod
kubectl config use-context cluster1-admin@cluster1
k get pod text-printer -o yaml > 6.yaml
- Change the value of env var from RED to GREEN
# vim 6.yaml
...
env:
- name: COLOR
value: GREEN
...
- Remove existing pod and create new one from updated manifest
k delete pod text-printer --force
k apply -f 6.yaml