mirror of
https://github.com/SamyRai/turash.git
synced 2025-12-26 23:01:33 +00:00
35 lines
880 B
YAML
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
|