break: switch from k3s to k0s (in docker)

- replace k3s with k0s
  - remove argocd-init.yml
  - remove pb_install.yml
  - add docker-compose.yml for k0s setup
  - add k0s-config.yaml for k0s configuration
  - add metallb loadbalancer
    - add metallb ip pool
  - add openebs local storage
- update README

🤖
This commit is contained in:
Sebastian Mark 2024-08-31 00:22:48 +02:00
parent e6a1e45cbd
commit 818b504fd5
7 changed files with 139 additions and 153 deletions

View file

@ -1,5 +1,6 @@
# Kubernetes Baseline
# k0s Kubernetes + Baseline
* [k0s](https://docs.k0sproject.io/stable/)
* [ArgoCD](https://argoproj.github.io/cd/)
* [NGINX Ingress Controller](https://kubernetes.github.io/ingress-nginx/)
* [cert-manager](https://cert-manager.io/)
@ -9,18 +10,21 @@
* [keel](https://keel.sh)
* [reloader](https://github.com/stakater/Reloader)
## Installation (k3s + baseline)
## Run (k0s + baseline)
`ansible-playbook -i <host|ip>, pb_install.yml`
`docker compose up`
## Installation (baseline only)
### Get kubeconfig
make sure kubectl is configure to reach the destination cluster, then:
`kubectl apply -f argocd-init.yml`
`docker compose exec -it k0s k0s kubeconfig admin`
## Notes
### openebs
When running in docker `/run/udev/` does not exist, but is required by `openebs`.
Simple fix is `docker compose exec -it k0s mkdir /run/udev/`
### ArgoCD
To retrieve the initial admin password use