diff --git a/infrastructure/traefik/ingressclass.yaml b/infrastructure/traefik/ingressclass.yaml new file mode 100644 index 00000000..2a32a262 --- /dev/null +++ b/infrastructure/traefik/ingressclass.yaml @@ -0,0 +1,9 @@ +# infrastructure/traefik/ingressclass.yaml +apiVersion: networking.k8s.io/v1 +kind: IngressClass +metadata: + name: traefik + annotations: + ingressclass.kubernetes.io/is-default-class: "true" +spec: + controller: traefik.io/ingress-controller diff --git a/infrastructure/traefik/kustomization.yaml b/infrastructure/traefik/kustomization.yaml index 6abf4853..19170d11 100644 --- a/infrastructure/traefik/kustomization.yaml +++ b/infrastructure/traefik/kustomization.yaml @@ -6,6 +6,7 @@ metadata: namespace: flux-system resources: - crds.yaml + - ingressclass.yaml - deployment.yaml - serviceaccount.yaml - clusterrole.yaml