k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.2 KiB
54 lines
1.2 KiB
---
|
|
- name: Kubernetes Apps | Delete old CoreDNS resources
|
|
kube:
|
|
name: "coredns"
|
|
namespace: "kube-system"
|
|
kubectl: "{{ bin_dir }}/kubectl"
|
|
resource: "{{ item }}"
|
|
state: absent
|
|
with_items:
|
|
- 'deploy'
|
|
- 'configmap'
|
|
- 'svc'
|
|
tags:
|
|
- upgrade
|
|
|
|
- name: Kubernetes Apps | Delete kubeadm CoreDNS
|
|
kube:
|
|
name: "coredns"
|
|
namespace: "kube-system"
|
|
kubectl: "{{ bin_dir }}/kubectl"
|
|
resource: "deploy"
|
|
state: absent
|
|
when:
|
|
- kubeadm_enabled|default(false)
|
|
- kubeadm_init.changed|default(false)
|
|
- inventory_hostname == groups['kube-master'][0]
|
|
|
|
- name: Kubernetes Apps | Delete old KubeDNS resources
|
|
kube:
|
|
name: "kube-dns"
|
|
namespace: "kube-system"
|
|
kubectl: "{{ bin_dir }}/kubectl"
|
|
resource: "{{ item }}"
|
|
state: absent
|
|
with_items:
|
|
- 'deploy'
|
|
- 'svc'
|
|
tags:
|
|
- upgrade
|
|
|
|
- name: Kubernetes Apps | Delete kubeadm KubeDNS
|
|
kube:
|
|
name: "kube-dns"
|
|
namespace: "kube-system"
|
|
kubectl: "{{ bin_dir }}/kubectl"
|
|
resource: "{{ item }}"
|
|
state: absent
|
|
with_items:
|
|
- 'deploy'
|
|
- 'svc'
|
|
when:
|
|
- kubeadm_enabled|default(false)
|
|
- kubeadm_init.changed|default(false)
|
|
- inventory_hostname == groups['kube-master'][0]
|