Last active
January 31, 2019 21:00
-
-
Save jjo/2619b862722d5fd2b8c2f5c0aadb0c7c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: DaemonSet | |
metadata: | |
namespace: kube-system | |
name: kube-proxy-cleanup | |
labels: | |
k8s-app: kube-proxy-cleanup | |
spec: | |
selector: | |
matchLabels: | |
k8s-app: kube-proxy-cleanup | |
template: | |
metadata: | |
labels: | |
k8s-app: kube-proxy-cleanup | |
spec: | |
hostNetwork: true | |
containers: | |
- name: kube-proxy-cleanup | |
args: ["sh", "-c", "kube-proxy --cleanup; echo exit_status=$?; sleep 3600"] | |
image: k8s.gcr.io/kube-proxy-amd64:v1.13.2 | |
securityContext: | |
privileged: true | |
volumeMounts: | |
- mountPath: /lib/modules | |
name: lib-modules | |
readOnly: true | |
volumes: | |
- hostPath: | |
path: /lib/modules | |
type: "" | |
name: lib-modules |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cleans up kube-proxy iptables via daemonset (must be manually deleted afterwards), use: