You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1 KiB

  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: kube-proxy
  5. namespace: kube-system
  6. spec:
  7. hostNetwork: true
  8. containers:
  9. - name: kube-proxy
  10. image: {{ hyperkube_image.name }}:{{ hyperkube_image.tag }}
  11. command:
  12. - /hyperkube
  13. - proxy
  14. - --v={{ kube_log_level | default('2') }}
  15. {% if inventory_hostname in groups['kube-master'] %}
  16. - --master=http://127.0.0.1:8080
  17. {% else %}
  18. - --master=https://{{ groups['kube-master'][0] }}:{{kube_apiserver_port }}
  19. - --kubeconfig=/etc/kubernetes/node-kubeconfig.yaml
  20. {% endif %}
  21. securityContext:
  22. privileged: true
  23. volumeMounts:
  24. - mountPath: /etc/ssl/certs
  25. name: ssl-certs-host
  26. readOnly: true
  27. - mountPath: /etc/kubernetes/node-kubeconfig.yaml
  28. name: "kubeconfig"
  29. readOnly: true
  30. - mountPath: /etc/kubernetes/ssl
  31. name: "etc-kube-ssl"
  32. readOnly: true
  33. volumes:
  34. - name: ssl-certs-host
  35. hostPath:
  36. path: /usr/share/ca-certificates
  37. - name: "kubeconfig"
  38. hostPath:
  39. path: "/etc/kubernetes/node-kubeconfig.yaml"
  40. - name: "etc-kube-ssl"
  41. hostPath:
  42. path: "/etc/kubernetes/ssl"