mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2024-11-23 19:06:33 +01:00
Fixes #72: Remove Web UI / Dashboard setup from role.
This commit is contained in:
parent
cce1780bc3
commit
e1199ae5e8
@ -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'
|
||||
|
@ -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'
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user