Fixes #72: Remove Web UI / Dashboard setup from role.

This commit is contained in:
Jeff Geerling 2021-08-16 14:55:43 -05:00
parent cce1780bc3
commit e1199ae5e8
3 changed files with 0 additions and 21 deletions

View File

@ -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. 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: kubernetes_pod_network:
# Flannel CNI. # Flannel CNI.
cni: 'flannel' cni: 'flannel'

View File

@ -20,9 +20,6 @@ kubernetes_kubelet_extra_args: ""
kubernetes_kubeadm_init_extra_opts: "" kubernetes_kubeadm_init_extra_opts: ""
kubernetes_join_command_extra_opts: "" kubernetes_join_command_extra_opts: ""
kubernetes_allow_pods_on_master: true 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: kubernetes_pod_network:
# Flannel CNI. # Flannel CNI.
cni: 'flannel' cni: 'flannel'

View File

@ -83,16 +83,3 @@
when: when:
- kubernetes_allow_pods_on_master | bool - kubernetes_allow_pods_on_master | bool
- not kubernetes_init_stat.stat.exists - 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