Last active
March 13, 2023 22:37
-
-
Save Sadamingh/8b63a5741417a5819a185cb20369d1da to your computer and use it in GitHub Desktop.
A etcd client used for Minikube
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
creationTimestamp: null | |
labels: | |
component: etcdclient | |
tier: debug | |
name: etcdclient | |
namespace: kube-system | |
spec: | |
containers: | |
- command: | |
- sleep | |
- 9999d | |
image: k8s.gcr.io/etcd:3.3.10 | |
imagePullPolicy: IfNotPresent | |
name: etcdclient | |
resources: {} | |
volumeMounts: | |
- mountPath: /var/lib/minikube/certs/etcd/ | |
name: etcd-certs | |
readOnly: true | |
- mountPath: /var/lib/minikube/etcd/ | |
name: etcd-data | |
readOnly: false | |
env: | |
- name: ETCDCTL_API | |
value: "3" | |
- name: ETCDCTL_CACERT | |
value: /var/lib/minikube/certs/etcd/ca.crt | |
- name: ETCDCTL_CERT | |
value: /var/lib/minikube/certs/etcd/healthcheck-client.crt | |
- name: ETCDCTL_KEY | |
value: /var/lib/minikube/certs/etcd/healthcheck-client.key | |
- name: ETCDCTL_ENDPOINTS | |
value: "https://127.0.0.1:2379" | |
hostNetwork: true | |
volumes: | |
- hostPath: | |
path: /var/lib/minikube/certs/etcd/ | |
type: DirectoryOrCreate | |
name: etcd-certs | |
- hostPath: | |
path: /var/lib/minikube/etcd/ | |
type: DirectoryOrCreate | |
name: etcd-data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment