Skip to content

Commit 7252c48

Browse files
authored
Merge pull request #37951 from windsonsea/accclu
Provide a consistent style in setup-ha-etcd-with-kubeadm.md
2 parents 9de02c7 + d36bed7 commit 7252c48

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

content/en/docs/setup/production-environment/tools/kubeadm/setup-ha-etcd-with-kubeadm.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ weight: 70
1111
{{< note >}}
1212
While kubeadm is being used as the management tool for external etcd nodes
1313
in this guide, please note that kubeadm does not plan to support certificate rotation
14-
or upgrades for such nodes. The long term plan is to empower the tool
14+
or upgrades for such nodes. The long-term plan is to empower the tool
1515
[etcdadm](https://github.com/kubernetes-sigs/etcdadm) to manage these
1616
aspects.
1717
{{< /note >}}
@@ -32,7 +32,7 @@ etcd cluster of three members that can be used by kubeadm during cluster creatio
3232
* Each host must have systemd and a bash compatible shell installed.
3333
* Each host must [have a container runtime, kubelet, and kubeadm installed](/docs/setup/production-environment/tools/kubeadm/install-kubeadm/).
3434
* Each host should have access to the Kubernetes container image registry (`registry.k8s.io`) or list/pull the required etcd image using
35-
`kubeadm config images list/pull`. This guide will setup etcd instances as
35+
`kubeadm config images list/pull`. This guide will set up etcd instances as
3636
[static pods](/docs/tasks/configure-pod-container/static-pod/) managed by a kubelet.
3737
* Some infrastructure to copy files between hosts. For example `ssh` and `scp`
3838
can satisfy this requirement.
@@ -98,7 +98,7 @@ on Kubernetes dual-stack support see [Dual-stack support with kubeadm](/docs/set
9898
export NAME1="infra1"
9999
export NAME2="infra2"
100100
101-
# Create temp directories to store files that will end up on other hosts.
101+
# Create temp directories to store files that will end up on other hosts
102102
mkdir -p /tmp/${HOST0}/ /tmp/${HOST1}/ /tmp/${HOST2}/
103103
104104
HOSTS=(${HOST0} ${HOST1} ${HOST2})
@@ -136,7 +136,7 @@ on Kubernetes dual-stack support see [Dual-stack support with kubeadm](/docs/set
136136
done
137137
```
138138
139-
1. Generate the certificate authority
139+
1. Generate the certificate authority.
140140
141141
If you already have a CA then the only action that is copying the CA's `crt` and
142142
`key` file to `/etc/kubernetes/pki/etcd/ca.crt` and
@@ -150,12 +150,12 @@ on Kubernetes dual-stack support see [Dual-stack support with kubeadm](/docs/set
150150
kubeadm init phase certs etcd-ca
151151
```
152152
153-
This creates two files
153+
This creates two files:
154154
155155
- `/etc/kubernetes/pki/etcd/ca.crt`
156156
- `/etc/kubernetes/pki/etcd/ca.key`
157157
158-
1. Create certificates for each member
158+
1. Create certificates for each member.
159159
160160
```sh
161161
kubeadm init phase certs etcd-server --config=/tmp/${HOST2}/kubeadmcfg.yaml
@@ -184,7 +184,7 @@ on Kubernetes dual-stack support see [Dual-stack support with kubeadm](/docs/set
184184
find /tmp/${HOST1} -name ca.key -type f -delete
185185
```
186186
187-
1. Copy certificates and kubeadm configs
187+
1. Copy certificates and kubeadm configs.
188188
189189
The certificates have been generated and now they must be moved to their
190190
respective hosts.
@@ -199,7 +199,7 @@ on Kubernetes dual-stack support see [Dual-stack support with kubeadm](/docs/set
199199
root@HOST $ mv pki /etc/kubernetes/
200200
```
201201
202-
1. Ensure all expected files exist
202+
1. Ensure all expected files exist.
203203
204204
The complete list of required files on `$HOST0` is:
205205
@@ -240,7 +240,7 @@ on Kubernetes dual-stack support see [Dual-stack support with kubeadm](/docs/set
240240
└── server.key
241241
```
242242
243-
On `$HOST2`
243+
On `$HOST2`:
244244
245245
```
246246
$HOME
@@ -259,7 +259,7 @@ on Kubernetes dual-stack support see [Dual-stack support with kubeadm](/docs/set
259259
└── server.key
260260
```
261261
262-
1. Create the static pod manifests
262+
1. Create the static pod manifests.
263263
264264
Now that the certificates and configs are in place it's time to create the
265265
manifests. On each host run the `kubeadm` command to generate a static manifest
@@ -271,7 +271,7 @@ on Kubernetes dual-stack support see [Dual-stack support with kubeadm](/docs/set
271271
root@HOST2 $ kubeadm init phase etcd local --config=$HOME/kubeadmcfg.yaml
272272
```
273273
274-
1. Optional: Check the cluster health
274+
1. Optional: Check the cluster health.
275275
276276
```sh
277277
docker run --rm -it \
@@ -286,15 +286,15 @@ on Kubernetes dual-stack support see [Dual-stack support with kubeadm](/docs/set
286286
https://[HOST1 IP]:2379 is healthy: successfully committed proposal: took = 19.44402ms
287287
https://[HOST2 IP]:2379 is healthy: successfully committed proposal: took = 35.926451ms
288288
```
289-
- Set `${ETCD_TAG}` to the version tag of your etcd image. For example `3.4.3-0`. To see the etcd image and tag that kubeadm uses execute `kubeadm config images list --kubernetes-version ${K8S_VERSION}`, where `${K8S_VERSION}` is for example `v1.17.0`
289+
- Set `${ETCD_TAG}` to the version tag of your etcd image. For example `3.4.3-0`. To see the etcd image and tag that kubeadm uses execute `kubeadm config images list --kubernetes-version ${K8S_VERSION}`, where `${K8S_VERSION}` is for example `v1.17.0`.
290290
- Set `${HOST0}`to the IP address of the host you are testing.
291291
292292
293293
294294
## {{% heading "whatsnext" %}}
295295
296296
297-
Once you have a working 3 member etcd cluster, you can continue setting up a
298-
highly available control plane using the [external etcd method with
299-
kubeadm](/docs/setup/production-environment/tools/kubeadm/high-availability/).
297+
Once you have an etcd cluster with 3 working members, you can continue setting up a
298+
highly available control plane using the
299+
[external etcd method with kubeadm](/docs/setup/production-environment/tools/kubeadm/high-availability/).
300300

0 commit comments

Comments
 (0)