2015-12-11 10:52:20 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Pod
|
|
|
|
metadata:
|
|
|
|
name: kube-podmaster
|
|
|
|
namespace: kube-system
|
|
|
|
spec:
|
|
|
|
hostNetwork: true
|
|
|
|
containers:
|
|
|
|
- name: scheduler-elector
|
|
|
|
image: gcr.io/google_containers/podmaster:1.1
|
|
|
|
command:
|
|
|
|
- /podmaster
|
2015-12-14 09:39:13 +00:00
|
|
|
- --etcd-servers={% for srv in groups['etcd'] %}http://{{ srv }}:2379{% if not loop.last %},{% endif %}{% endfor %}
|
|
|
|
|
2015-12-11 10:52:20 +00:00
|
|
|
- --key=scheduler
|
|
|
|
- --source-file={{ kube_config_dir}}/kube-scheduler.manifest
|
|
|
|
- --dest-file={{ kube_manifest_dir }}/kube-scheduler.manifest
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: {{ kube_config_dir }}
|
|
|
|
name: manifest-src
|
|
|
|
readOnly: true
|
|
|
|
- mountPath: {{ kube_manifest_dir }}
|
|
|
|
name: manifest-dst
|
|
|
|
- name: controller-manager-elector
|
|
|
|
image: gcr.io/google_containers/podmaster:1.1
|
|
|
|
command:
|
|
|
|
- /podmaster
|
2015-12-14 09:39:13 +00:00
|
|
|
- --etcd-servers={% for srv in groups['etcd'] %}http://{{ srv }}:2379{% if not loop.last %},{% endif %}{% endfor %}
|
|
|
|
|
2015-12-11 10:52:20 +00:00
|
|
|
- --key=controller
|
|
|
|
- --source-file={{ kube_config_dir }}/kube-controller-manager.manifest
|
|
|
|
- --dest-file={{ kube_manifest_dir }}/kube-controller-manager.manifest
|
|
|
|
terminationMessagePath: /dev/termination-log
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: {{ kube_config_dir }}
|
|
|
|
name: manifest-src
|
|
|
|
readOnly: true
|
|
|
|
- mountPath: {{ kube_manifest_dir }}
|
|
|
|
name: manifest-dst
|
|
|
|
volumes:
|
|
|
|
- hostPath:
|
|
|
|
path: {{ kube_config_dir }}
|
|
|
|
name: manifest-src
|
|
|
|
- hostPath:
|
|
|
|
path: {{ kube_manifest_dir }}
|
|
|
|
name: manifest-dst
|