diff --git a/README.md b/README.md index 4c3b71a..b4038a0 100644 --- a/README.md +++ b/README.md @@ -90,11 +90,6 @@ Extra args to pass to the generated `kubeadm join` command during K8s node initi Whether to remove the taint that denies pods from being deployed to the Kubernetes master. If you have a single-node cluster, this should definitely be `True`. Otherwise, set to `False` if you want a dedicated Kubernetes master which doesn't run any other pods. - kubernetes_enable_web_ui: false - kubernetes_web_ui_manifest_file: https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml - -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: # Flannel CNI. cni: 'flannel' diff --git a/defaults/main.yml b/defaults/main.yml index 803f51d..62d635e 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -20,9 +20,6 @@ kubernetes_kubelet_extra_args: "" kubernetes_kubeadm_init_extra_opts: "" kubernetes_join_command_extra_opts: "" kubernetes_allow_pods_on_master: true -kubernetes_enable_web_ui: true -# https://github.com/kubernetes/dashboard/blob/master/docs/user/installation.md -kubernetes_web_ui_manifest_file: https://raw.githubusercontent.com/kubernetes/dashboard/v2.2.0/aio/deploy/recommended.yaml kubernetes_pod_network: # Flannel CNI. cni: 'flannel' diff --git a/tasks/master-setup.yml b/tasks/master-setup.yml index 6913a9e..72ab695 100644 --- a/tasks/master-setup.yml +++ b/tasks/master-setup.yml @@ -83,16 +83,3 @@ when: - kubernetes_allow_pods_on_master | bool - not kubernetes_init_stat.stat.exists - -- name: Check if Kubernetes Dashboard UI service already exists. - shell: kubectl get services --namespace kube-system | grep -q kubernetes-dashboard - changed_when: false - failed_when: false - register: kubernetes_dashboard_service - when: kubernetes_enable_web_ui | bool - -- name: Enable the Kubernetes Web Dashboard UI (if configured). - command: "kubectl create -f {{ kubernetes_web_ui_manifest_file }}" - when: - - kubernetes_enable_web_ui | bool - - kubernetes_dashboard_service.rc != 0