Hello
I just setup a k3s cluster (with disabled default traefik deployment) and tried to deploy traefik with helm.
But it seems that the CRD's are not installed with helm.
When I try to install a ingress route for an application
kubectl get ingressroute_traefik_io --all-namespaces
error: the server doesn't have a resource type "ingressroute_traefik_io"
Installed with helm from Traefik Charts | charts v. 28.0.0
Here my values.yaml
globalArguments:
- "--global.sendanonymoususage=false"
- "--global.checknewversion=false"
additionalArguments:
- "--log.level=DEBUG"
- "--serversTransport.insecureSkipVerify=true"
- "--providers.kubernetesingress.allowexternalnameservices"
- "--providers.kubernetescrd.allowexternalnameservices"
core:
defaultRuleSyntax: v2
ingressClass:
enabled: true
isDefaultClass: false
# name: my-custom-class
providers:
kubernetesCRD:
enabled: true
ingressClass: traefik-external
allowCrossNamespace: true
allowExternalNameServices: true
kubernetesIngress:
enabled: true
allowExternalNameServices: true
allowCrossNamespace: true
publishedService:
enabled: false
ports:
traefik:
port: 9000
expose:
default: false
exposedPort: 9000
protocol: TCP
web:
redirectTo:
port: websecure
proxyProtocol:
insecure: true
forwardedHeaders:
insecure: true
websecure:
tls:
enabled: true
proxyProtocol:
insecure: true
forwardedHeaders:
insecure: true
tlsStore:
default:
defaultCertificate:
secretName: default-cert
service:
enabled: true
single: true
type: LoadBalancer
annotations:
metallb.universe.tf/address-pool: mlb-address-pool-1
spec:
loadBalancerIP: 192.168.50.66
rbac:
enabled: true
logs:
access:
enabled: true
and here my ingress route for on of the applications:
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: longhorn-frontend
namespace: longhorn-system
annotations:
kubernetes.io/ingress.class: traefik-external
spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: Host(`longhorn.k3s........`)
services:
- name: longhorn-frontend
port: 80
when i try to deploy the app ingress route I got following error:
error: resource mapping not found for name: "longhorn-frontend" namespace: "longhorn-system" from "kubernetes/charts/base-setup/templates/ir-longhorn-dashboard.yml": no matches for kind "IngressRoute" in version "traefik.containo.us/v1alpha1"
ensure CRDs are installed first