Last active
November 28, 2023 07:48
-
-
Save aojea/6f17c07251cf9251f66a611d80c6a6f1 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 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