Traefik fails after automatic self-restart because of missing CRD #1640
-
DescriptionMy running hetzner cluster out of a sudden shows a self-signed certificate problem despite the certificate is actually still valid. It turns out that traefik was restarted 16 hours ago and now throws some errors (and I hope that they are the source of the problem)
I interprete this as following:
Questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
I fixed my current cluster by installing the new CRD and RBAC definitions # Install Traefik Resource Definitions:
kubectl apply -f https://raw.githubusercontent.com/traefik/traefik/v3.0/docs/content/reference/dynamic-configuration/kubernetes-crd-definition-v1.yml
# Install RBAC for Traefik:
kubectl apply -f https://raw.githubusercontent.com/traefik/traefik/v3.0/docs/content/reference/dynamic-configuration/kubernetes-crd-rbac.yml and then, in addition, I needed to change all the k8s traefik yaml resource definitions to use |
Beta Was this translation helpful? Give feedback.
-
Interesting, maybe a bug should be opened on k3s' side. |
Beta Was this translation helpful? Give feedback.
-
Looking around where this autoupdate is defined I found that
|
Beta Was this translation helpful? Give feedback.
-
@schlichtanders It could be updated automatically along with k3s. However, if I remember correctly (I need to re-check in the code), we had dissociated traefik from k3s and are now installing it directly via helm. Maybe you were running an old cluster? |
Beta Was this translation helpful? Give feedback.
-
@schlichtanders Any updates here? |
Beta Was this translation helpful? Give feedback.
I fixed my current cluster by installing the new CRD and RBAC definitions
and then, in addition, I needed to change all the k8s traefik yaml resource definitions to use
apiVersion: traefik.io/v1alpha1
.