christianlempa-boilerplates/kubernetes/traefik/templates/ingress.yml
2021-11-29 08:41:39 +01:00

30 lines
840 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: wp-clcreative
namespace: wp-clcreative
annotations:
# (Optional): Annotations for the Ingress Controller
# ---
# General:
# kubernetes.io/ingress.class: traefik
#
# TLS configuration:
# traefik.ingress.kubernetes.io/router.entrypoints: web, websecure
# traefik.ingress.kubernetes.io/router.tls: "true"
#
# Middleware:
# traefik.ingress.kubernetes.io/router.middlewares:your-middleware@kubernetescrd
spec:
rules:
- host: "your-hostname.com" # Your hostname
http:
paths:
# Path-based routing settings:
- path: /
pathType: Prefix
backend:
service:
name: your-service-name # The name of the service
port:
number: 80 # Service Portnumber