An Ansible role for ensuring the configuration of the Kubernetes Web UI (Dashboard).
Requires Docker and Kubernetes installed.
Variable | Required | Default | Choices | Comments |
---|---|---|---|---|
kubernetes_dashboard_version | yes | v2.0.0 | matches release tag | Kubernetes Dashboard version to install |
images_cache_path | no | not defined | Path | Path to folder used to cache saved Docker images |
cache_container_timeout | no | 300 seconds | Integer value | Number of seconds before Ansible times out |
An example can be found used in my Hands-on DevOps course's ansible/master-playbook.yml.
- hosts: masters
remote_user: vagrant
roles:
- common
- docker
- k3s-server
- kubernetes-dashboard
The above Ansible playbook uses my
- Common role to configure the instance past the base CentOS 7, Alpine 3.10 or Ubuntu Bionic image
- Docker role to install and configure Docker
- K3s-server role to install Lightweight Kubernetes (K3s)
- metallb role to install MetalLB
- This role to install the Kubernetes Dashboard
For more information and to see this role put into action checkout my Hands-on DevOps class project.
3-Clause BSD License
Michael Joseph Walsh mjwalsh@nemonik.com