mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-19 12:10:11 -03:30
Add kubeadm option to etcd_deployment_type to replace the etcd_kubeadm_enabled variable (#8317)
* Add kubeadm option to etcd_deployment_type to replace the etcd_kubeadm_enabled variable Signed-off-by: necatican <necaticanyildirim@gmail.com> * Add etcd kubeadm deployment documentation Signed-off-by: necatican <necaticanyildirim@gmail.com> * Refactor warning for the deprecated 'etcd_kubeadm_enabled' variable Signed-off-by: necatican <necaticanyildirim@gmail.com>
This commit is contained in:
committed by
GitHub
parent
b9a27c91da
commit
e9c8913248
@@ -13,7 +13,7 @@ _To use the CRI-O container runtime set the following variables:_
|
||||
```yaml
|
||||
download_container: false
|
||||
skip_downloads: false
|
||||
etcd_kubeadm_enabled: true
|
||||
etcd_deployment_type: host # optionally kubeadm
|
||||
```
|
||||
|
||||
## k8s_cluster/k8s_cluster.yml
|
||||
@@ -22,12 +22,6 @@ etcd_kubeadm_enabled: true
|
||||
container_manager: crio
|
||||
```
|
||||
|
||||
## etcd.yml
|
||||
|
||||
```yaml
|
||||
etcd_deployment_type: host # optionally and mutually exclusive with etcd_kubeadm_enabled
|
||||
```
|
||||
|
||||
## all/crio.yml
|
||||
|
||||
Enable docker hub registry mirrors
|
||||
|
||||
16
docs/etcd.md
16
docs/etcd.md
@@ -1,5 +1,21 @@
|
||||
# etcd
|
||||
|
||||
## Deployment Types
|
||||
|
||||
It is possible to deploy etcd with three methods. To change the default deployment method (host), use the `etcd_deployment_type` variable. Possible values are `host`, `kubeadm`, and `docker`.
|
||||
|
||||
### Host
|
||||
|
||||
Host deployment is the default method. Using this method will result in etcd installed as a systemd service.
|
||||
|
||||
### Docker
|
||||
|
||||
Installs docker in etcd group members and runs etcd on docker containers. Only usable when `container_manager` is set to `docker`.
|
||||
|
||||
### Kubeadm
|
||||
|
||||
This deployment method is experimental and is only available for new deployments. This deploys etcd as a static pod in master hosts.
|
||||
|
||||
## Metrics
|
||||
|
||||
To expose metrics on a separate HTTP port, define it in the inventory with:
|
||||
|
||||
@@ -308,6 +308,18 @@ caprica Ready master,node 7h40m v1.14.1
|
||||
|
||||
```
|
||||
|
||||
## Upgrading to v2.19
|
||||
|
||||
`etcd_kubeadm_enabled` is being deprecated at v2.19. The same functionality is achievable by setting `etcd_deployment_type` to `kubeadm`.
|
||||
Deploying etcd using kubeadm is experimental and is only available for either new or deployments where `etcd_kubeadm_enabled` was set to `true` while deploying the cluster.
|
||||
|
||||
From 2.19 and onward `etcd_deployment_type` variable will be placed in `group_vars/all/etcd.yml` instead of `group_vars/etcd.yml`, due to scope issues.
|
||||
The placement of the variable is only important for `etcd_deployment_type: kubeadm` right now. However, since this might change in future updates, it is recommended to move the variable.
|
||||
|
||||
Upgrading is straightforward; no changes are required if `etcd_kubeadm_enabled` was not set to `true` when deploying.
|
||||
|
||||
If you have a cluster where `etcd` was deployed using `kubeadm`, you will need to remove `etcd_kubeadm_enabled` the variable. Then move `etcd_deployment_type` variable from `group_vars/etcd.yml` to `group_vars/all/etcd.yml` due to scope issues and set `etcd_deployment_type` to `kubeadm`.
|
||||
|
||||
## Upgrade order
|
||||
|
||||
As mentioned above, components are upgraded in the order in which they were
|
||||
|
||||
Reference in New Issue
Block a user