Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Patch kops DNS controller to `--watch-ingress=true`
Steps for the workaround:
Check the yaml of current deployment for the dns-controller. Here you will find the path to the --watch-ingress setting.
`kubectl get deployment -n kube-system dns-controller -o yaml`
Use the path and make a patch of the deployment. I think the path here will work for most.
```kubectl patch deployment -n kube-system dns-controller --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/command/1", "value":"--watch-ingress=true"}]'```
Check the patched pod for changes.
`kubectl get pod -n kube-system dns-controller-84dc7cc57f-46ztt -o yaml`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment