diff --git a/kubernetes/traefik/templates/ingress.yml b/kubernetes/traefik/templates/ingress.yml index 5c1ce88..6794fed 100644 --- a/kubernetes/traefik/templates/ingress.yml +++ b/kubernetes/traefik/templates/ingress.yml @@ -5,30 +5,31 @@ metadata: namespace: wp-clcreative annotations: # (Optional): Annotations for the Ingress Controller - # --- - # General: + # -- ingress class is needed when traefik is not the default # kubernetes.io/ingress.class: traefik - # - # TLS configuration: + # --- + # -- entrypoint and tls configurations # traefik.ingress.kubernetes.io/router.entrypoints: web, websecure # traefik.ingress.kubernetes.io/router.tls: "true" - # - # Middleware: + # --- + # -- optional middlewares # traefik.ingress.kubernetes.io/router.middlewares:your-middleware@kubernetescrd + # --- spec: rules: - - host: "your-hostname.com" # Your hostname + - host: "your-hostname" http: paths: - # Path-based routing settings: - path: / pathType: Prefix backend: service: - name: your-service-name # The name of the service + name: your-service-name port: - number: 80 # Service Portnumber + number: 80 + # (Optional) TLS settings # tls: # - hosts: # - your-hostname.com # Your hostname - # secretName: your-secret # Your TLS Secret \ No newline at end of file + # secretName: your-secret # Your TLS Secret + # --- \ No newline at end of file diff --git a/kubernetes/traefik/templates/ingressroutetcp.yml b/kubernetes/traefik/templates/ingressroutetcp.yml new file mode 100644 index 0000000..b23f462 --- /dev/null +++ b/kubernetes/traefik/templates/ingressroutetcp.yml @@ -0,0 +1,22 @@ +# +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRouteTCP +metadata: + name: ingressroutetcp + # (Optional) Namespace + # namespace: your-namespace + # --- +spec: + entryPoints: + - web + - websecure + routes: + - match: HostSNI(`your-hostname-sni`) + priority: 10 + services: + - name: your-service + port: 80 + # (Optional) TLS Passthrough + # tls: + # passthrough: true + # --- \ No newline at end of file