Add --ignore-preflight-errors param to kubeadm join

This commit is contained in:
Yakhya Dabo 2019-05-09 08:41:02 +01:00
parent 7eea163f81
commit 3e2b4ba308
2 changed files with 5 additions and 0 deletions

View File

@ -49,6 +49,10 @@ Whether to remove the taint that denies pods from being deployed to the Kubernet
kubernetes_enable_web_ui: false kubernetes_enable_web_ui: false
kubernetes_web_ui_manifest_file: https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml kubernetes_web_ui_manifest_file: https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml
This is used for the `kubeadm init` command as well as the `kubeadm join` command's --ignore-preflight-errors option
kubernetes_ignore_preflight_errors: 'all'
Whether to enable the Kubernetes web dashboard UI (only accessible on the master itself, or proxied), and the file containing the web dashboard UI manifest. Whether to enable the Kubernetes web dashboard UI (only accessible on the master itself, or proxied), and the file containing the web dashboard UI manifest.
kubernetes_pod_network_cidr: '10.244.0.0/16' kubernetes_pod_network_cidr: '10.244.0.0/16'

View File

@ -2,5 +2,6 @@
- name: Join node to Kubernetes master - name: Join node to Kubernetes master
shell: > shell: >
{{ kubernetes_join_command }} {{ kubernetes_join_command }}
--ignore-preflight-errors={{ kubernetes_ignore_preflight_errors }}
creates=/etc/kubernetes/kubelet.conf creates=/etc/kubernetes/kubelet.conf
tags: ['skip_ansible_lint'] tags: ['skip_ansible_lint']