Skip to content

Instantly share code, notes, and snippets.

@M00nF1sh
Created March 26, 2021 18:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save M00nF1sh/84d380b4e08017a5bc958658f7010914 to your computer and use it in GitHub Desktop.
Save M00nF1sh/84d380b4e08017a5bc958658f7010914 to your computer and use it in GitHub Desktop.
KubeProxy patch - Hostname mismatch
spec:
template:
spec:
containers:
- name: kube-proxy
command:
- kube-proxy
- --hostname-override=$(NODE_NAME)
- --v=2
- --config=/var/lib/kube-proxy-config/config
env:
- name: NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment