-
-
Save tsanghan/8015fd59cb2af7f928eb90af634e2375 to your computer and use it in GitHub Desktop.
etcdclient for using on kind deployments (full credit to maulioin) https://mauilion.dev/posts/etcdclient/
This file contains hidden or 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: default | |
spec: | |
nodeName: kind-control-plane | |
containers: | |
- command: | |
- sleep | |
- 9999d | |
image: k8s.gcr.io/etcd:3.3.10 | |
imagePullPolicy: IfNotPresent | |
name: etcdclient | |
resources: {} | |
volumeMounts: | |
- mountPath: /etc/kubernetes/pki/etcd | |
name: etcd-certs | |
readOnly: true | |
env: | |
- name: ETCDCTL_API | |
value: "3" | |
- name: ETCDCTL_CACERT | |
value: /etc/kubernetes/pki/etcd/ca.crt | |
- name: ETCDCTL_CERT | |
value: /etc/kubernetes/pki/etcd/healthcheck-client.crt | |
- name: ETCDCTL_KEY | |
value: /etc/kubernetes/pki/etcd/healthcheck-client.key | |
- name: ETCDCTL_ENDPOINTS | |
value: "https://127.0.0.1:2379" | |
- name: ETCDCTL_CLUSTER | |
value: "true" | |
hostNetwork: true | |
volumes: | |
- hostPath: | |
path: /etc/kubernetes/pki/etcd | |
type: DirectoryOrCreate | |
name: etcd-certs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment