fooocus-flux/ingress.yaml
2024-10-06 23:38:56 -05:00

23 lines
586 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ${deployment:=fooocus}
namespace: ${namespace:=fooocus}
annotations:
haproxy-ingress.github.io/rewrite: /
haproxy-ingress.github.io/auth-url: ${oauth2_proxy_base}/auth
haproxy-ingress.github.io/auth-signin: ${oauth2_proxy_base}/start?rd=https://%[hdr(host)]%[path]
spec:
ingressClassName: haproxy
rules:
- host: ${hostname}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: ${deployment}
port:
name: http