I got 2 test cluster with microk8s and traefik installed via helm. One worked, the other didn't... until I realized the cluster that didn't work had rbac enabed ("microk8s.enable rbac").
I installed as follows:
helm repo add traefik https://containous.github.io/traefik-helm-chart
helm repo update
kubectl create ns traefik
helm install traefik traefik/traefik --values traefik-values.yaml -n traefik
What do I need to do to make it work with rbac?
Here is the content of traefik-values.yaml
are:
additionalArguments:
- "--certificatesresolvers.letsencrypt.acme.email=adentella@thux.it"
- "--certificatesresolvers.letsencrypt.acme.storage=/data/acme.json"
- "--certificatesresolvers.letsencrypt.acme.caserver=https://acme-v02.api.letsencrypt.org/directory"
- "--certificatesResolvers.letsencrypt.acme.tlschallenge=true"
- "--api.insecure=false"
- "--accesslog=true"
- "--log.level=INFO"
hostNetwork: true
image:
tag: 2.4.7
service:
type: ClusterIP
ports:
web:
port: 80
#redirectTo: websecure
websecure:
port: 443
securityContext:
capabilities:
drop: [ALL]
add: [NET_BIND_SERVICE]
readOnlyRootFilesystem: true
runAsGroup: 0
runAsNonRoot: false
runAsUser: 0