Revert "remove no longer present etcd nodes from APIEndpoints list in kubeadm-config configmap (#8244)" (#8287)
This reverts commit dc767c14b9
.
This commit is contained in:
parent
bdb923df4a
commit
5a25de37ef
1 changed files with 0 additions and 15 deletions
|
@ -62,18 +62,3 @@
|
|||
when:
|
||||
- inventory_hostname in groups['etcd']
|
||||
- etcd_member_id.stdout | length > 0
|
||||
|
||||
# Delete node from kubeadm-config
|
||||
- name: Update kubeadm-config configmap removing control-plane no longer existing endpoints
|
||||
vars:
|
||||
kubeadm_config_cm_content: "{{ lookup('kubernetes.core.k8s', kind='ConfigMap', namespace='kube-system', resource_name='kubeadm-config', kubeconfig=keos_kubeconfig_path) }}"
|
||||
kubernetes.core.k8s:
|
||||
kubeconfig: "{{ keos_kubeconfig_path }}"
|
||||
definition:
|
||||
api_version: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: kubeadm-config-test
|
||||
namespace: default
|
||||
data:
|
||||
ClusterStatus: "{{ kubeadm_config_cm_content.data.ClusterStatus | regex_replace( node |default(kube_node) + ':\n' + ' *advertiseAddress: ([0-9]{1,3}.){3}[0-9]{1,3}\n' + ' *bindPort: [0-9]{1,5}' , '') }}"
|
||||
|
|
Loading…
Reference in a new issue