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.

54 lines
1.6 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. - --enable-hostpath-provisioner={{ kube_hostpath_dynamic_provisioner }}
  19. - --v={{ kube_log_level | default('2') }}
  20. {% if cloud_provider is defined and cloud_provider == "openstack" %}
  21. - --cloud-provider=openstack
  22. - --cloud-config={{ kube_config_dir }}/cloud_config
  23. {% endif %}
  24. livenessProbe:
  25. httpGet:
  26. host: 127.0.0.1
  27. path: /healthz
  28. port: 10252
  29. initialDelaySeconds: 30
  30. timeoutSeconds: 10
  31. volumeMounts:
  32. - mountPath: {{ kube_cert_dir }}
  33. name: ssl-certs-kubernetes
  34. readOnly: true
  35. - mountPath: /etc/ssl/certs
  36. name: ssl-certs-host
  37. readOnly: true
  38. {% if cloud_provider is defined and cloud_provider == "openstack" %}
  39. - mountPath: {{ kube_config_dir }}/cloud_config
  40. name: cloudconfig
  41. readOnly: true
  42. {% endif %}
  43. volumes:
  44. - hostPath:
  45. path: {{ kube_cert_dir }}
  46. name: ssl-certs-kubernetes
  47. - hostPath:
  48. path: /etc/ssl/certs/
  49. name: ssl-certs-host
  50. {% if cloud_provider is defined and cloud_provider == "openstack" %}
  51. - hostPath:
  52. path: {{ kube_config_dir }}/cloud_config
  53. name: cloudconfig
  54. {% endif %}