Update high-availability.md (#8783)
Fix indentation damaged etcd YAML manifest
This commit is contained in:
committed by
k8s-ci-robot
parent
4c2e4f825b
commit
4ecc84bbce
@@ -295,7 +295,23 @@ Please select one of the tabs to see installation instructions for the respectiv
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- command:
|
- command:
|
||||||
- etcd --name <name> - --data-dir /var/lib/etcd - --listen-client-urls http://localhost:2379 - --advertise-client-urls http://localhost:2379 - --listen-peer-urls http://localhost:2380 - --initial-advertise-peer-urls http://localhost:2380 - --cert-file=/certs/server.pem - --key-file=/certs/server-key.pem - --client-cert-auth - --trusted-ca-file=/certs/ca.pem - --peer-cert-file=/certs/peer.pem - --peer-key-file=/certs/peer-key.pem - --peer-client-cert-auth - --peer-trusted-ca-file=/certs/ca.pem - --initial-cluster etcd0=https://<etcd0-ip-address>:2380,etcd1=https://<etcd1-ip-address>:2380,etcd2=https://<etcd2-ip-address>:2380 - --initial-cluster-token my-etcd-token - --initial-cluster-state new
|
- etcd --name <name>
|
||||||
|
- --data-dir /var/lib/etcd
|
||||||
|
- --listen-client-urls http://localhost:2379
|
||||||
|
- --advertise-client-urls http://localhost:2379
|
||||||
|
- --listen-peer-urls http://localhost:2380
|
||||||
|
- --initial-advertise-peer-urls http://localhost:2380
|
||||||
|
- --cert-file=/certs/server.pem
|
||||||
|
- --key-file=/certs/server-key.pem
|
||||||
|
- --client-cert-auth
|
||||||
|
- --trusted-ca-file=/certs/ca.pem
|
||||||
|
- --peer-cert-file=/certs/peer.pem
|
||||||
|
- --peer-key-file=/certs/peer-key.pem
|
||||||
|
- --peer-client-cert-auth
|
||||||
|
- --peer-trusted-ca-file=/certs/ca.pem
|
||||||
|
- --initial-cluster etcd0=https://<etcd0-ip-address>:2380,etcd1=https://<etcd1-ip-address>:2380,etcd2=https://<etcd2-ip-address>:2380
|
||||||
|
- --initial-cluster-token my-etcd-token
|
||||||
|
- --initial-cluster-state new
|
||||||
image: k8s.gcr.io/etcd-amd64:3.1.10
|
image: k8s.gcr.io/etcd-amd64:3.1.10
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
|
|||||||
Reference in New Issue
Block a user