47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
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
|
|
- --etcd-servers=http://127.0.0.1:2379
|
|
- --key=scheduler
|
|
- --whoami=ADVERTISE_IP
|
|
- --source-file=/src/manifests/kube-scheduler.yaml
|
|
- --dest-file=/dst/manifests/kube-scheduler.yaml
|
|
volumeMounts:
|
|
- mountPath: /src/manifests
|
|
name: manifest-src
|
|
readOnly: true
|
|
- mountPath: /dst/manifests
|
|
name: manifest-dst
|
|
- name: controller-manager-elector
|
|
image: gcr.io/google_containers/podmaster:1.1
|
|
command:
|
|
- /podmaster
|
|
- --etcd-servers=http://127.0.0.1:2379
|
|
- --key=controller
|
|
- --whoami=ADVERTISE_IP
|
|
- --source-file=/src/manifests/kube-controller-manager.yaml
|
|
- --dest-file=/dst/manifests/kube-controller-manager.yaml
|
|
terminationMessagePath: /dev/termination-log
|
|
volumeMounts:
|
|
- mountPath: /src/manifests
|
|
name: manifest-src
|
|
readOnly: true
|
|
- mountPath: /dst/manifests
|
|
name: manifest-dst
|
|
volumes:
|
|
- hostPath:
|
|
path: /srv/kubernetes/manifests
|
|
name: manifest-src
|
|
- hostPath:
|
|
path: /etc/kubernetes/manifests
|
|
name: manifest-dst
|