christianlempa-boilerplates/kubernetes/traefik/templates/ingress.yml

36 lines
971 B
YAML
Raw Normal View History

2021-11-29 08:41:39 +01:00
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: wp-clcreative
namespace: wp-clcreative
annotations:
# (Optional): Annotations for the Ingress Controller
2022-09-08 15:43:18 +02:00
# -- ingress class is needed when traefik is not the default
2021-11-29 08:41:39 +01:00
# kubernetes.io/ingress.class: traefik
2022-09-08 15:43:18 +02:00
# ---
# -- entrypoint and tls configurations
2021-11-29 08:41:39 +01:00
# traefik.ingress.kubernetes.io/router.entrypoints: web, websecure
# traefik.ingress.kubernetes.io/router.tls: "true"
2022-09-08 15:43:18 +02:00
# ---
# -- optional middlewares
2021-11-29 08:41:39 +01:00
# traefik.ingress.kubernetes.io/router.middlewares:your-middleware@kubernetescrd
2022-09-08 15:43:18 +02:00
# ---
2021-11-29 08:41:39 +01:00
spec:
rules:
2022-09-08 15:43:18 +02:00
- host: "your-hostname"
2021-11-29 08:41:39 +01:00
http:
paths:
- path: /
pathType: Prefix
backend:
service:
2022-09-08 15:43:18 +02:00
name: your-service-name
2021-11-29 08:41:39 +01:00
port:
2022-09-08 15:43:18 +02:00
number: 80
# (Optional) TLS settings
2022-04-20 14:58:38 +02:00
# tls:
# - hosts:
# - your-hostname.com # Your hostname
2022-09-08 15:43:18 +02:00
# secretName: your-secret # Your TLS Secret
# ---