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