moikot.k8s_dashboard
Ansible Role: Kubernetes Dashboard
An Ansible role that installs Kubernetes Dashboard and allows you to change default arguments and cluster role binding.
NOTE: This Ansible role intended to be used for home experiments only.
Requirements
Requires Kubernetes and kubectl on the target.
Role variables
Link to the Dashboard manifest:
k8s_dashboard_manifest: https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0/aio/deploy/recommended.yaml
Dashboard arguments:
k8s_dashboard_args:
- --auto-generate-certificates
- --namespace=kubernetes-dashboard
Dashboard cluster role reference:
k8s_dashboard_cluster_role: kubernetes-dashboard
Playbook example
IMPORTANT: This example is granting admin privileges to Dashboard's service account and allows you to skip authorization. Please read Access control Wiki before using it.
- hosts: all
vars:
k8s_dashboard_args:
- --enable-skip-login
- --disable-settings-authorizer
- --auto-generate-certificates
- --namespace=kubernetes-dashboard
k8s_dashboard_cluster_role: cluster-admin
roles:
- moikot.k8s_dashboard
Install
ansible-galaxy install moikot.k8s_dashboardLicense
mit
Downloads
138
Owner
