not sure was tired
This commit is contained in:
@ -66,7 +66,7 @@
|
||||
ansible.builtin.shell:
|
||||
cmd: |
|
||||
kubeadm init \
|
||||
--control-plane-endpoint {{ k8s_endpoint }} \
|
||||
--control-plane-endpoint {{ k8s_v4_address }} \
|
||||
--cri-socket /run/containerd/containerd.sock \
|
||||
--pod-network-cidr {{ k8s_v4_pod_cidr }},{{ k8s_v6_pod_cidr }} \
|
||||
--service-cidr {{ k8s_v4_service_cidr }},{{ k8s_v6_service_cidr}} \
|
||||
@ -122,6 +122,22 @@
|
||||
group: "{{ local_user }}"
|
||||
mode: 0600
|
||||
|
||||
- name: fix core-dns resolution
|
||||
delegate_to: localhost
|
||||
run_once: true
|
||||
become: false
|
||||
block:
|
||||
|
||||
- name: template out core-dns configmap
|
||||
ansible.builtin.template:
|
||||
src: core-dns_configmap.yaml.j2
|
||||
dest: "{{ ansible_search_path[0] }}/files/core-dns/core-dns_configmap.yaml"
|
||||
|
||||
- name: configure coredns to resolve directly from upstream
|
||||
kubernetes.core.k8s:
|
||||
src: "{{ ansible_search_path[0] }}/files/core-dns/core-dns_configmap.yaml"
|
||||
state: present
|
||||
|
||||
- name: kubeadm join remaining control plain nodes
|
||||
when: ansible_host != hostvars[groups['k8s_control'][0]]['ansible_host']
|
||||
ansible.builtin.shell:
|
||||
|
Reference in New Issue
Block a user