Code required to install a traefik ingress controller in kubernetes 1.24
apply traefik-api.yaml
kubectl apply -f traefik-api.yaml
apply pv and pvc
Traefik needs somewhere to store certificates and keys where they will persist on traefik pod recreation.
Below uses longhorn as the storage provider and host path.
kubectl apply -f traefik-pv.yaml
kubectl apply -f traefik-pvc.yaml