containerd issue
This commit is contained in:
@@ -76,11 +76,11 @@
|
||||
register: node_ready
|
||||
changed_when: false
|
||||
|
||||
- name: Remove taint from control plane node
|
||||
shell: kubectl --kubeconfig=/etc/kubernetes/admin.conf taint nodes --all node-role.kubernetes.io/control-plane-
|
||||
register: taint_result
|
||||
changed_when: "'untainted' in taint_result.stdout"
|
||||
failed_when: false # This might fail if the taint doesn't exist, which is fine
|
||||
# - name: Remove taint from control plane node
|
||||
# shell: kubectl --kubeconfig=/etc/kubernetes/admin.conf taint nodes --all node-role.kubernetes.io/control-plane-
|
||||
# register: taint_result
|
||||
# changed_when: "'untainted' in taint_result.stdout"
|
||||
# failed_when: false # This might fail if the taint doesn't exist, which is fine
|
||||
|
||||
- name: Remove load balancer label from all nodes
|
||||
shell: kubectl --kubeconfig=/etc/kubernetes/admin.conf label nodes --all node.kubernetes.io/exclude-from-external-load-balancers-
|
||||
|
||||
@@ -64,6 +64,15 @@
|
||||
when: config_written.changed
|
||||
notify: Restart containerd
|
||||
|
||||
- name: Update containerd config for Kubernetes sandbox image
|
||||
lineinfile:
|
||||
path: "{{ containerd_config_root }}/config.toml"
|
||||
regexp: '(\s*)sandbox_image = ".*"'
|
||||
line: '\1sandbox_image = "registry.k8s.io/pause:3.10"'
|
||||
backrefs: yes
|
||||
when: config_written.changed
|
||||
notify: Restart containerd
|
||||
|
||||
- name: Update containerd config for GRPC socket group (gid)
|
||||
replace:
|
||||
path: "{{ containerd_config_root }}/config.toml"
|
||||
|
||||
Reference in New Issue
Block a user