123456789101112131415161718192021222324252627282930313233343536373839404142 |
- kind: Pod
- apiVersion: v1
- metadata:
- name: master-etcd
- namespace: kube-system
- labels:
- openshift.io/control-plane: "true"
- openshift.io/component: etcd
- annotations:
- scheduler.alpha.kubernetes.io/critical-pod: ''
- spec:
- restartPolicy: Always
- hostNetwork: true
- containers:
- - name: etcd
- image: quay.io/coreos/etcd:v3.3
- workingDir: /var/lib/etcd
- command: ["/bin/sh", "-c"]
- args:
- - |
- #!/bin/sh
- set -o allexport
- source /etc/etcd/etcd.conf
- exec etcd
- securityContext:
- privileged: true
- volumeMounts:
- - mountPath: /etc/etcd/
- name: master-config
- readOnly: true
- - mountPath: /var/lib/etcd/
- name: master-data
- livenessProbe:
- exec:
- initialDelaySeconds: 45
- volumes:
- - name: master-config
- hostPath:
- path: /etc/etcd/
- - name: master-data
- hostPath:
- path: /var/lib/etcd
|