kube-proxy.manifest 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: kube-proxy
  5. namespace: kube-system
  6. # This annotation ensures that kube-proxy does not get evicted if the node
  7. # supports critical pod annotation based priority scheme.
  8. # Note that kube-proxy runs as a static pod so this annotation does NOT have
  9. # any effect on default scheduler which scheduling kube-proxy.
  10. annotations:
  11. scheduler.alpha.kubernetes.io/critical-pod: ''
  12. labels:
  13. tier: node
  14. component: kube-proxy
  15. spec:
  16. priorityClassName: system-node-critical
  17. hostNetwork: true
  18. tolerations:
  19. - operator: "Exists"
  20. effect: "NoExecute"
  21. - operator: "Exists"
  22. effect: "NoSchedule"
  23. containers:
  24. - name: kube-proxy
  25. image: {{pillar['kube_docker_registry']}}/kube-proxy:{{pillar['kube-proxy_docker_tag']}}
  26. resources:
  27. requests:
  28. cpu: {{ cpurequest }}
  29. command:
  30. - /bin/sh
  31. - -c
  32. - exec kube-proxy {{api_servers_with_port}} {{kubeconfig}} {{cluster_cidr}} --resource-container="" --oom-score-adj=-998 {{params}} 1>>/var/log/kube-proxy.log 2>&1
  33. {{container_env}}
  34. {{kube_cache_mutation_detector_env_name}}
  35. {{kube_cache_mutation_detector_env_value}}
  36. securityContext:
  37. privileged: true
  38. volumeMounts:
  39. - mountPath: /etc/ssl/certs
  40. name: etc-ssl-certs
  41. readOnly: true
  42. - mountPath: /usr/share/ca-certificates
  43. name: usr-ca-certs
  44. readOnly: true
  45. - mountPath: /var/log
  46. name: varlog
  47. readOnly: false
  48. - mountPath: /var/lib/kube-proxy/kubeconfig
  49. name: kubeconfig
  50. readOnly: false
  51. - mountPath: /run/xtables.lock
  52. name: iptableslock
  53. readOnly: false
  54. - mountPath: /lib/modules
  55. name: lib-modules
  56. readOnly: true
  57. volumes:
  58. - hostPath:
  59. path: /usr/share/ca-certificates
  60. name: usr-ca-certs
  61. - hostPath:
  62. path: /etc/ssl/certs
  63. name: etc-ssl-certs
  64. - hostPath:
  65. path: /var/lib/kube-proxy/kubeconfig
  66. type: FileOrCreate
  67. name: kubeconfig
  68. - hostPath:
  69. path: /var/log
  70. name: varlog
  71. - hostPath:
  72. path: /run/xtables.lock
  73. type: FileOrCreate
  74. name: iptableslock
  75. - name: lib-modules
  76. hostPath:
  77. path: /lib/modules