Skip to content

Instantly share code, notes, and snippets.

@mariusv
Created July 4, 2019 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariusv/2f06d52aac839e0d79c84e8e43bd8371 to your computer and use it in GitHub Desktop.
Save mariusv/2f06d52aac839e0d79c84e8e43bd8371 to your computer and use it in GitHub Desktop.
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