Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 387 Bytes

File metadata and controls

25 lines (19 loc) · 387 Bytes
  1. Get manifest of the existing pod
kubectl config use-context cluster1-admin@cluster1

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