-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathetcdctl-health-check-pod.json
More file actions
31 lines (31 loc) · 976 Bytes
/
Copy pathetcdctl-health-check-pod.json
File metadata and controls
31 lines (31 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
apiVersion: v1
kind: Pod
metadata:
name: etcdctl-health-check-pod
spec:
"hostNetwork": true
"nodeName": "kmaster1.lk8s.net"
"restartPolicy": "Never"
"securityContext": {}
"tolerations":
- "effect": "NoSchedule"
"operator": "Exists"
"volumes":
- "name": "etcd-certs"
"hostPath":
"path": "/etc/kubernetes/pki/etcd"
"type": "DirectoryOrCreate"
containers:
- name: connect-etcd
imagePullPolicy: IfNotPresent
image: k8s.gcr.io/etcd:3.4.3-0
command: [ sh ]
args: [ "-c", "etcdctl --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/peer.crt --key=/etc/kubernetes/pki/etcd/peer.key --debug=true --endpoints https://10.10.10.21:2379,https://10.10.10.22:2379,https://10.10.10.23:2379 endpoint health && exec tail -f /dev/null" ]
env:
- name: ETCDCTL_API
value: '3'
volumeMounts:
- name: etcd-certs
mountPath: "/etc/kubernetes/pki/etcd"
readOnly: true
resources: {}