etcd.yaml 830 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. kind: Pod
  2. apiVersion: v1
  3. metadata:
  4. name: master-etcd
  5. namespace: kube-system
  6. labels:
  7. openshift.io/control-plane: "true"
  8. openshift.io/component: etcd
  9. spec:
  10. restartPolicy: Always
  11. hostNetwork: true
  12. containers:
  13. - name: etcd
  14. image: quay.io/coreos/etcd:v3.3
  15. workingDir: /var/lib/etcd
  16. command: ["/bin/sh", "-c"]
  17. args:
  18. - |
  19. #!/bin/sh
  20. set -o allexport
  21. source /etc/etcd/etcd.conf
  22. exec etcd
  23. securityContext:
  24. privileged: true
  25. volumeMounts:
  26. - mountPath: /etc/etcd/
  27. name: master-config
  28. readOnly: true
  29. - mountPath: /var/lib/etcd/
  30. name: master-data
  31. livenessProbe:
  32. tcpSocket:
  33. port: 2379
  34. volumes:
  35. - name: master-config
  36. hostPath:
  37. path: /etc/etcd/
  38. - name: master-data
  39. hostPath:
  40. path: /var/lib/etcd