-
Notifications
You must be signed in to change notification settings - Fork 4
/
romana-etcd.yaml.t
50 lines (50 loc) · 1.17 KB
/
romana-etcd.yaml.t
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
apiVersion: v1
kind: Pod
metadata:
labels:
component: romana-etcd
tier: control-plane
name: romana-etcd
namespace: kube-system
spec:
hostNetwork: true
containers:
- name: romana-etcd
image: gcr.io/google_containers/etcd-amd64:3.0.14-kubeadm
imagePullPolicy: IfNotPresent
command:
- etcd
- --name=etcd-<node-number>
- --listen-client-urls=http://127.0.0.1:12379,http://<host-ip>:12379
- --listen-peer-urls=http://<host-ip>:12380
- --advertise-client-urls=http://<host-ip>:12379
- --data-dir=/var/etcd/data
livenessProbe:
failureThreshold: 8
httpGet:
host: 127.0.0.1
path: /health
port: 2379
scheme: HTTP
initialDelaySeconds: 15
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 15
volumeMounts:
- mountPath: /etc/ssl/certs
name: certs
- mountPath: /var/etcd
name: romana-etcd
- mountPath: /etc/kubernetes/
name: k8s
readOnly: true
volumes:
- hostPath:
path: /etc/ssl/certs
name: certs
- hostPath:
path: /var/lib/romana/etcd
name: romana-etcd
- hostPath:
path: /etc/kubernetes
name: k8s