mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-22 08:13:18 +01:00
traefik update
This commit is contained in:
parent
34f8ab714a
commit
712a867611
@ -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
|
||||
# ---
|
22
kubernetes/traefik/templates/ingressroutetcp.yml
Normal file
22
kubernetes/traefik/templates/ingressroutetcp.yml
Normal 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
|
||||
# ---
|
Loading…
Reference in New Issue
Block a user