Installation#
Requirements#
- git
- ansible
- kubectl
- helm
Preparation#
- Clone this repository
- Configure pre-commit-hooks
- Adapt ansible vars to your needs. For this, copy the "group_vars/all/main.yml" to e.g. ""group_vars/all/own.yml" to override the default vars
A short explanation of the vars can be found in the vars file. Because they tend to change, I wont document them here.
Ansible inventory#
This playbook requires the following host groups:
- k3s_server
- k3s_agent
Example:
Installation#
Run ansible from within the ansible folder
Ansible downloads the kubeconfig file to the folder ./shared/${HOSTNAME}/k3s.yaml file. You can use this file to access the cluster.
To get the validity of the kubeconfig file, you can use the following command (either replace $KUBECONFIG with the path to the kubeconfig file or set it as environment variable):
Removal#
ArgoCD#
Get the ArgoCD Login password for the admin user:
Remove ArgoCD