From 3e2b4ba308697eb02890b4021377217d314cbc29 Mon Sep 17 00:00:00 2001 From: Yakhya Dabo Date: Thu, 9 May 2019 08:41:02 +0100 Subject: [PATCH] Add --ignore-preflight-errors param to kubeadm join --- README.md | 4 ++++ tasks/node-setup.yml | 1 + 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index b935890..fd21002 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,10 @@ Whether to remove the taint that denies pods from being deployed to the Kubernet kubernetes_enable_web_ui: false 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. kubernetes_pod_network_cidr: '10.244.0.0/16' diff --git a/tasks/node-setup.yml b/tasks/node-setup.yml index 304cbf1..c0ef722 100644 --- a/tasks/node-setup.yml +++ b/tasks/node-setup.yml @@ -2,5 +2,6 @@ - name: Join node to Kubernetes master shell: > {{ kubernetes_join_command }} + --ignore-preflight-errors={{ kubernetes_ignore_preflight_errors }} creates=/etc/kubernetes/kubelet.conf tags: ['skip_ansible_lint']