mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-24 05:43:50 +03:00
docs: fix incorrect Ansible paths and standardize inventory references (#13246)
This commit updates documentation across several files to correct broken file paths and ensure consistency in Ansible command examples - Standardized inventory naming to `inventory.ini` for sample inventories. - Fixed `group_vars` paths to reflect the actual directory structure (e.g., `group_vars/all/all.yml` instead of `group_vars/all.yml`). - Corrected the `k8s-cluster.yml` filename in guides. - Clarified the location for `kubectl_localhost` and `kubeconfig_localhost` settings. - Replaced non-existent placeholders (like `inventory/single.cfg`) with valid repository paths. - Fixed typos in directory names (e.g., `myclsuter` -> `mycluster`).
This commit is contained in:
@@ -28,11 +28,11 @@ Everything done here requires full root access to every node.
|
||||
Before you begin, adjust your inventory:
|
||||
|
||||
```yaml
|
||||
# Filename: k8s_cluster/k8s-cluster.yml
|
||||
# Filename: group_vars/k8s_cluster/k8s-cluster.yml
|
||||
resolvconf_mode: host_resolvconf
|
||||
container_manager: containerd
|
||||
|
||||
# Filename: etcd.yml
|
||||
# Filename: group_vars/all/etcd.yml
|
||||
etcd_deployment_type: host
|
||||
```
|
||||
|
||||
@@ -66,7 +66,7 @@ apt-get install pigz
|
||||
### 5) Run `cluster.yml` playbook with `--limit`
|
||||
|
||||
```commandline
|
||||
ansible-playbook -i inventory/sample/hosts.ini cluster.yml --limit=NODENAME
|
||||
ansible-playbook -i inventory/sample/inventory.ini cluster.yml --limit=NODENAME
|
||||
```
|
||||
|
||||
This effectively reinstalls containerd and seems to place all config files in the right place. When this completes, kubelet will immediately pick up the new container engine and start spinning up DaemonSets and kube-system Pods.
|
||||
|
||||
Reference in New Issue
Block a user