-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incremental update from master #10278
Changes from all commits
4423ff8
37d8c7b
bbc815d
c750608
ee9a6c9
53b5165
726ce50
a4b1b7c
c038d89
9ce0cd0
6f221d8
068edf5
4a15ba5
a0c831a
e47cb8d
00c0cda
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
--- | ||
reviewers: | ||
- sig-cluster-lifecycle | ||
title: Set up a Highly Availabile etcd Cluster With kubeadm | ||
title: Set up a High Availability etcd cluster with kubeadm | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is High Availability all-capsed? Do we have style guidance? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No caps, adverb: highly available. See this example from our own docs. |
||
content_template: templates/task | ||
weight: 60 | ||
--- | ||
|
||
{{% capture overview %}} | ||
|
||
Kubeadm defaults to running a single member etcd cluster in a static pod managed | ||
by the kubelet on the control plane node. This is not a highly available setup | ||
by the kubelet on the control plane node. This is not a high availability setup | ||
as the etcd cluster contains only one member and cannot sustain any members | ||
becoming unavailable. This task walks through the process of creating a highly | ||
available etcd cluster of three members that can be used as an external etcd | ||
becoming unavailable. This task walks through the process of creating a high | ||
availability etcd cluster of three members that can be used as an external etcd | ||
when using kubeadm to set up a kubernetes cluster. | ||
|
||
{{% /capture %}} | ||
|
@@ -108,7 +108,7 @@ this example. | |
If you already have a CA then the only action that is copying the CA's `crt` and | ||
`key` file to `/etc/kubernetes/pki/etcd/ca.crt` and | ||
`/etc/kubernetes/pki/etcd/ca.key`. After those files have been copied, please | ||
skip this step. | ||
proceed to "Create certificates for each member". | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove "please" and link to the step you should go to, rather than using quotes. |
||
|
||
If you do not already have a CA then run this command on `$HOST0` (where you | ||
generated the configuration files for kubeadm). | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -194,18 +194,13 @@ You have several choices for Kubernetes images: | |
- You can verify if the image is loaded successfully with the right repository and tag using | ||
command like `docker images` | ||
|
||
For etcd, you can: | ||
|
||
- Use images hosted on Google Container Registry (GCR), such as `k8s.gcr.io/etcd:2.2.1` | ||
- Use images hosted on [Docker Hub](https://hub.docker.com/search/?q=etcd) or [Quay.io](https://quay.io/repository/coreos/etcd), such as `quay.io/coreos/etcd:v2.2.1` | ||
- Use etcd binary included in your OS distro. | ||
- Build your own image | ||
- You can do: `cd kubernetes/cluster/images/etcd; make` | ||
|
||
We recommend that you use the etcd version which is provided in the Kubernetes binary distribution. The Kubernetes binaries in the release | ||
were tested extensively with this version of etcd and not with any other version. | ||
The recommended version number can also be found as the value of `TAG` in `kubernetes/cluster/images/etcd/Makefile`. | ||
|
||
For the miniumum recommended version of etcd, please refer to | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove "please" while you're at it. |
||
[Configuring and Updating etcd](/docs/tasks/administer-cluster/configure-upgrade-etcd/) | ||
|
||
The remainder of the document assumes that the image identifiers have been chosen and stored in corresponding env vars. Examples (replace with latest tags and appropriate registry): | ||
|
||
- `HYPERKUBE_IMAGE=k8s.gcr.io/hyperkube:$TAG` | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,8 @@ content_template: templates/task | |
|
||
* Keeping stable etcd clusters is critical to the stability of Kubernetes clusters. Therefore, run etcd clusters on dedicated machines or isolated environments for [guaranteed resource requirements](https://github.com/coreos/etcd/blob/master/Documentation/op-guide/hardware.md#hardware-recommendations). | ||
|
||
* The minimum recommended version of etcd to run in production is `3.2.10+`. | ||
|
||
## Resource requirements | ||
|
||
Operating etcd with limited resources is suitable only for testing purposes. For deploying in production, advanced hardware configuration is required. Before deploying etcd in production, see [resource requirement reference documentation](https://github.com/coreos/etcd/blob/master/Documentation/op-guide/hardware.md#example-hardware-configurations). | ||
|
@@ -388,6 +390,8 @@ TARGET_VERSION=2.2.1 | |
STORAGE_MEDIA_TYPE=application/json | ||
``` | ||
|
||
** Note: this upgrade procedure is for getting from 2.x to 3.x. Version `3.0.17` is not recommended for running in production (see [prerequisites](#prereqisites) for minimum recommended etcd versions. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. spelling check on #prerequisites There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mark this up as an actual note. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This note needs to be formatted correctly and with a shortcode:
So:
|
||
|
||
## Notes for etcd Version 2.2.1 | ||
|
||
### Default configuration | ||
|
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"Target":"css/styles.min.55d1e72cc5418eace24df1a4450abe45a6ee9111f9814269bc6540e8c49d2399.css","MediaType":"text/css","Data":{"Integrity":"sha256-VdHnLMVBjqziTfGkRQq+RabukRH5gUJpvGVA6MSdI5k="}} | ||
{"Target":"css/styles.min.ece7e7b8765fe37209670b4fdb98dc7c18c77ce66f423368a943e602cf2ab436.css","MediaType":"text/css","Data":{"Integrity":"sha256-7OfnuHZf43IJZwtP25jcfBjHfOZvQjNoqUPmAs8qtDY="}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Making changes to auto-generated files but those files don't get a fresh date a few lines below? This same comment for similar files below and above.