Edit Deployment Directly
Code Block |
---|
$ kubectl -n flux-system edit deployment helm-controller |
Export and Update
Code Block |
---|
$ kubectl -n flux-system get deployment helm-controller -o yaml > helm-controller.yaml $ vi helm-controller.yaml $ kubectl apply -f helm-controller.yaml |
Patch a Deployment
Patch:
Code Block |
---|
spec:
template:
spec:
securityContext:
runAsUser: 999 |
Code Block |
---|
$ kubectl -n flux-system patch deployment notification-controller --patch "$(cat patch.yaml)" |