我已经在数字海洋中安装了kubernetes集群(1master,3worker)。问题是我在该群集中同时安装了法兰绒和印花棉布。 我想从群集中完全删除印花布。
答案 0 :(得分:1)
使用以下两个命令从节点中删除印花布:
kubectl delete -f https://docs.projectcalico.org/v3.3/getting-started/kubernetes/installation/hosted/rbac-kdd.yaml
kubectl delete -f https://docs.projectcalico.org/v3.3/getting-started/kubernetes/installation/hosted/kubernetes-datastore/calico-networking/1.7/calico.yaml
答案 1 :(得分:0)
您应该添加这些
https://docs.projectcalico.org/v3.3/getting-started/kubernetes/installation/hosted/rbac-kdd.yaml
和
将您的ansible剧本文件状态设置为“不存在”,然后在您运行ansible剧本文件时,即如下所示。
- name: Delete Calico (rbac-kdd.yaml) from cluster
kubernetes:
api_endpoint: 123.45.67.89
insecure: true
file_reference: /path/to/rbac-kdd.yaml
state: absent
- name: Delete Calico (calico.yaml) from cluster
kubernetes:
api_endpoint: 123.45.67.89
insecure: true
file_reference: /path/to/calico.yaml
state: absent
请检查您的ansible剧本文件以进行集群安装,并根据需要更改/修改值。
有关ansible的kubernetes的更多详细信息,您可以看到以下内容: https://docs.ansible.com/ansible/2.5/modules/kubernetes_module.html
希望对您有所帮助