Skip to content

Commit 400d6ca

Browse files
authored
Merge pull request #26700 from juampynr/patch-5
Demonstrate how to use secure communication
2 parents a2bb7a6 + 66e666f commit 400d6ca

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

content/en/docs/tasks/administer-cluster/configure-upgrade-etcd.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,16 @@ the URL schema.
125125

126126
Similarly, to configure etcd with secure client communication, specify flags
127127
`--key-file=k8sclient.key` and `--cert-file=k8sclient.cert`, and use HTTPS as
128-
the URL schema.
128+
the URL schema. Here is an example on a client command that uses secure
129+
communication:
130+
131+
```
132+
ETCDCTL_API=3 etcdctl --endpoints 10.2.0.9:2379 \
133+
--cert=/etc/kubernetes/pki/etcd/server.crt \
134+
--key=/etc/kubernetes/pki/etcd/server.key \
135+
--cacert=/etc/kubernetes/pki/etcd/ca.crt \
136+
member list
137+
```
129138

130139
### Limiting access of etcd clusters
131140

0 commit comments

Comments
 (0)