kube-proxy.manifest 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # Please keep kube-proxy configuration in-sync with:
  2. # cluster/addons/kube-proxy/kube-proxy-ds.yaml
  3. apiVersion: v1
  4. kind: Pod
  5. metadata:
  6. name: kube-proxy
  7. namespace: kube-system
  8. labels:
  9. tier: node
  10. component: kube-proxy
  11. spec:
  12. priorityClassName: system-node-critical
  13. hostNetwork: true
  14. tolerations:
  15. - operator: "Exists"
  16. effect: "NoExecute"
  17. - operator: "Exists"
  18. effect: "NoSchedule"
  19. containers:
  20. - name: kube-proxy
  21. image: {{pillar['kube_docker_registry']}}/kube-proxy-amd64:{{pillar['kube-proxy_docker_tag']}}
  22. resources:
  23. requests:
  24. cpu: {{ cpurequest }}
  25. command:
  26. - /bin/sh
  27. - -c
  28. - exec kube-proxy {{api_servers_with_port}} {{kubeconfig}} {{cluster_cidr}} --oom-score-adj=-998 {{params}} 1>>/var/log/kube-proxy.log 2>&1
  29. {{container_env}}
  30. {{kube_cache_mutation_detector_env_name}}
  31. {{kube_cache_mutation_detector_env_value}}
  32. securityContext:
  33. privileged: true
  34. volumeMounts:
  35. - mountPath: /etc/ssl/certs
  36. name: etc-ssl-certs
  37. readOnly: true
  38. - mountPath: /usr/share/ca-certificates
  39. name: usr-ca-certs
  40. readOnly: true
  41. - mountPath: /var/log
  42. name: varlog
  43. readOnly: false
  44. - mountPath: /var/lib/kube-proxy/kubeconfig
  45. name: kubeconfig
  46. readOnly: false
  47. - mountPath: /run/xtables.lock
  48. name: iptableslock
  49. readOnly: false
  50. - mountPath: /lib/modules
  51. name: lib-modules
  52. readOnly: true
  53. volumes:
  54. - hostPath:
  55. path: /usr/share/ca-certificates
  56. name: usr-ca-certs
  57. - hostPath:
  58. path: /etc/ssl/certs
  59. name: etc-ssl-certs
  60. - hostPath:
  61. path: /var/lib/kube-proxy/kubeconfig
  62. type: FileOrCreate
  63. name: kubeconfig
  64. - hostPath:
  65. path: /var/log
  66. name: varlog
  67. - hostPath:
  68. path: /run/xtables.lock
  69. type: FileOrCreate
  70. name: iptableslock
  71. - name: lib-modules
  72. hostPath:
  73. path: /lib/modules