Files
AI-Red-Teaming-Playground-L…/k8s/conf/prod/ingress/ingress-home.yaml
microsoft-github-operations[bot] 6659812f5b Initial commit
2025-05-18 06:12:26 -07:00

31 lines
960 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: home-ingress
annotations:
cert-manager.io/cluster-issuer: letsencrypt
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_set_header X-Forwarded-For "$http_x_forwarded_for";
# Status code required by Azure Application Gateway
nginx.ingress.kubernetes.io/server-snippet: |
location ~* "^/healthz$" {
return 200 'OK\n';
}
spec:
ingressClassName: nginx
tls:
- hosts:
- ai-red-teaming-playground-labs.westus3.cloudapp.azure.com
secretName: airt-practice-tls
rules:
- host: ai-red-teaming-playground-labs.westus3.cloudapp.azure.com
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: challenge-home-service
port:
name: web-port