fooocus-flux/ingress.yaml

23 lines
586 B
YAML
Raw Normal View History

2024-10-07 04:16:50 +00:00
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