feat(volumes): Persistent storage for Traefik certs

This commit is contained in:
Vegard Hagen
2022-10-08 11:17:39 +02:00
committed by vehagn
parent 107f1fc700
commit b33d362088
14 changed files with 499 additions and 69 deletions
+20 -3
View File
@@ -82,6 +82,10 @@ Install Cilium
cilium install
```
```shell
helm template --namespace kube-system cilium cilium/cilium --version 1.12.1 --set cluster.id=0,cluster.name=kubernetes,encryption.nodeEncryption=false,kubeProxyReplacement=disabled,operator.replicas=1,serviceAccounts.cilium.name=cilium,serviceAccounts.operator.name=cilium-operator,tunnel=vxlan
```
Validate install
```shell
@@ -89,15 +93,15 @@ cilium status
```
### (Optional) Replace kube-proxy with Cilium [TODO]
https://docs.cilium.io/en/v1.12/gettingstarted/kubeproxy-free/
*NB* Cluster should be initialised with
*NB* Cluster should be initialised with
```shell
sudo kubeadm init --skip-phases=addon/kube-proxy
```
## MetalLB
For load balancing
@@ -115,11 +119,24 @@ Configure IP-pool and advertise as Level 2
https://metallb.universe.tf/configuration/
```yaml
kubectl apply -f metallb/02-configuration
kubectl apply -f metallb/01-configuration.yml
```
# Traefik
## Install using Helm
```shell
kubectl apply -f volumes/volumes.yml
```
**NB:** It appears we need the "volume-permissions" init container for Traefik if using `StorageClass` with
provisioner `kubernetes.io/no-provisioner`
```shell
helm install --values=helm/traefik-values.yaml traefik traefik/traefik
```
## Traefik IngressRoute Custom Resource Definition (CRD)
https://doc.traefik.io/traefik/v2.8/routing/providers/kubernetes-crd/