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.

53 lines
1.5 KiB

9 years ago
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: kube-controller-manager
  5. namespace: kube-system
  6. spec:
  7. hostNetwork: true
  8. containers:
  9. - name: kube-controller-manager
  10. image: {{ hyperkube_image_repo }}:{{ hyperkube_image_tag }}
  11. command:
  12. - /hyperkube
  13. - controller-manager
  14. - --master=http://127.0.0.1:{{kube_apiserver_insecure_port}}
  15. - --leader-elect=true
  16. - --service-account-private-key-file={{ kube_cert_dir }}/apiserver-key.pem
  17. - --root-ca-file={{ kube_cert_dir }}/ca.pem
  18. - --v={{ kube_log_level | default('2') }}
  19. {% if cloud_provider is defined and cloud_provider == "openstack" %}
  20. - --cloud-provider=openstack
  21. - --cloud-config={{ kube_config_dir }}/cloud_config
  22. {% endif %}
  23. livenessProbe:
  24. httpGet:
  25. host: 127.0.0.1
  26. path: /healthz
  27. port: 10252
  28. initialDelaySeconds: 30
  29. timeoutSeconds: 10
  30. volumeMounts:
  31. - mountPath: {{ kube_cert_dir }}
  32. name: ssl-certs-kubernetes
  33. readOnly: true
  34. - mountPath: /etc/ssl/certs
  35. name: ssl-certs-host
  36. readOnly: true
  37. {% if cloud_provider is defined and cloud_provider == "openstack" %}
  38. - mountPath: {{ kube_config_dir }}/cloud_config
  39. name: cloudconfig
  40. readOnly: true
  41. {% endif %}
  42. volumes:
  43. - hostPath:
  44. path: {{ kube_cert_dir }}
  45. name: ssl-certs-kubernetes
  46. - hostPath:
  47. path: /etc/ssl/certs/
  48. name: ssl-certs-host
  49. {% if cloud_provider is defined and cloud_provider == "openstack" %}
  50. - hostPath:
  51. path: {{ kube_config_dir }}/cloud_config
  52. name: cloudconfig
  53. {% endif %}