turash/k8s/frontend-ingress.yaml
2025-12-24 19:17:14 +01:00

35 lines
880 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: turash-frontend-ingress
namespace: turash
labels:
app: turash-frontend
component: ingress
annotations:
# Traefik annotations
traefik.ingress.kubernetes.io/router.entrypoints: websecure
# SSL/TLS configuration
cert-manager.io/cluster-issuer: letsencrypt-prod
# Redirect to HTTPS
traefik.ingress.kubernetes.io/redirect-entrypoint: websecure
# Enable compression
traefik.ingress.kubernetes.io/router.middlewares: default-compress@kubernetescrd
spec:
ingressClassName: traefik
rules:
- host: turash.bk.glpx.pro
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: turash-frontend
port:
number: 80
tls:
- hosts:
- turash.bk.glpx.pro
secretName: turash-frontend-tls