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.

55 lines
1.8 KiB

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