traefik update

This commit is contained in:
Christian Lempa
2022-09-08 15:43:18 +02:00
parent 34f8ab714a
commit 712a867611
2 changed files with 34 additions and 11 deletions

View File

@@ -5,30 +5,31 @@ metadata:
namespace: wp-clcreative namespace: wp-clcreative
annotations: annotations:
# (Optional): Annotations for the Ingress Controller # (Optional): Annotations for the Ingress Controller
# --- # -- ingress class is needed when traefik is not the default
# General:
# kubernetes.io/ingress.class: traefik # kubernetes.io/ingress.class: traefik
# # ---
# TLS configuration: # -- entrypoint and tls configurations
# traefik.ingress.kubernetes.io/router.entrypoints: web, websecure # traefik.ingress.kubernetes.io/router.entrypoints: web, websecure
# traefik.ingress.kubernetes.io/router.tls: "true" # traefik.ingress.kubernetes.io/router.tls: "true"
# # ---
# Middleware: # -- optional middlewares
# traefik.ingress.kubernetes.io/router.middlewares:your-middleware@kubernetescrd # traefik.ingress.kubernetes.io/router.middlewares:your-middleware@kubernetescrd
# ---
spec: spec:
rules: rules:
- host: "your-hostname.com" # Your hostname - host: "your-hostname"
http: http:
paths: paths:
# Path-based routing settings:
- path: / - path: /
pathType: Prefix pathType: Prefix
backend: backend:
service: service:
name: your-service-name # The name of the service name: your-service-name
port: port:
number: 80 # Service Portnumber number: 80
# (Optional) TLS settings
# tls: # tls:
# - hosts: # - hosts:
# - your-hostname.com # Your hostname # - your-hostname.com # Your hostname
# secretName: your-secret # Your TLS Secret # secretName: your-secret # Your TLS Secret
# ---

View File

@@ -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
# ---