aboutsummaryrefslogtreecommitdiffstats
path: root/resources/templates/kubernetes/pods/etcdv3.yaml
blob: f5f6b324350059a93897d1015f1f0a92285f8381 (plain)
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
apiVersion: v1
kind: Pod
metadata:
  name: etcdv3
  namespace: csit
spec:
  hostNetwork: true
  containers:
    - image: quay.io/coreos/etcd:v3.0.16
      name: etcdv3
      command:
        - /usr/local/bin/etcd
        - --advertise-client-urls
        - http://0.0.0.0:22379
        - --listen-client-urls
        - http://0.0.0.0:22379
        - --listen-peer-urls
        - http://0.0.0.0:22380
      ports:
        - containerPort: 22379
          hostPort: 22379
          name: serverport
      env:
        - name: ETCDCTL_API
          value: "3"