From 02dc9fbd3e61763d5c2e61f7f3d43783f4fafb23 Mon Sep 17 00:00:00 2001 From: Ho Kim Date: Tue, 18 Apr 2023 07:10:57 +0200 Subject: [PATCH] Suggest to run reset script for first-time users (#9865) --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index a771e4dce..efcaaaa03 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,13 @@ CONFIG_FILE=inventory/mycluster/hosts.yaml python3 contrib/inventory_builder/inv cat inventory/mycluster/group_vars/all/all.yml cat inventory/mycluster/group_vars/k8s_cluster/k8s-cluster.yml +# Clean up old Kubernete cluster with Ansible Playbook - run the playbook as root +# The option `--become` is required, as for example cleaning up SSL keys in /etc/, +# uninstalling old packages and interacting with various systemd daemons. +# Without --become the playbook will fail to run! +# And be mind it will remove the current kubernetes cluster (if it's running)! +ansible-playbook -i inventory/mycluster/hosts.yaml --become --become-user=root reset.yml + # Deploy Kubespray with Ansible Playbook - run the playbook as root # The option `--become` is required, as for example writing SSL keys in /etc/, # installing packages and interacting with various systemd daemons.