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.

46 lines
1.4 KiB

  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: kube-podmaster
  5. namespace: kube-system
  6. spec:
  7. hostNetwork: true
  8. containers:
  9. - name: scheduler-elector
  10. image: gcr.io/google_containers/podmaster:1.1
  11. command:
  12. - /podmaster
  13. - --etcd-servers={% for srv in groups['etcd'] %}http://{{ srv }}:2379{% if not loop.last %},{% endif %}{% endfor %}
  14. - --key=scheduler
  15. - --source-file={{ kube_config_dir}}/kube-scheduler.manifest
  16. - --dest-file={{ kube_manifest_dir }}/kube-scheduler.manifest
  17. volumeMounts:
  18. - mountPath: {{ kube_config_dir }}
  19. name: manifest-src
  20. readOnly: true
  21. - mountPath: {{ kube_manifest_dir }}
  22. name: manifest-dst
  23. - name: controller-manager-elector
  24. image: gcr.io/google_containers/podmaster:1.1
  25. command:
  26. - /podmaster
  27. - --etcd-servers={% for srv in groups['etcd'] %}http://{{ srv }}:2379{% if not loop.last %},{% endif %}{% endfor %}
  28. - --key=controller
  29. - --source-file={{ kube_config_dir }}/kube-controller-manager.manifest
  30. - --dest-file={{ kube_manifest_dir }}/kube-controller-manager.manifest
  31. terminationMessagePath: /dev/termination-log
  32. volumeMounts:
  33. - mountPath: {{ kube_config_dir }}
  34. name: manifest-src
  35. readOnly: true
  36. - mountPath: {{ kube_manifest_dir }}
  37. name: manifest-dst
  38. volumes:
  39. - hostPath:
  40. path: {{ kube_config_dir }}
  41. name: manifest-src
  42. - hostPath:
  43. path: {{ kube_manifest_dir }}
  44. name: manifest-dst