netflux-kubernetes/deploy/base/ingress.yaml

55 lines
1.1 KiB
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 5m
nginx.ingress.kubernetes.io/server-snippet: |
if ($http_user_agent ~* "BLEXBot|SemrushBot" ) {
return 403;
}
spec:
ingressClassName: nginx
# NOTE: overlays depend on the order of rule entries.
rules:
- host: grafana.internal
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: grafana
port:
name: service
- host: invidious.internal
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: invidious
port:
name: http
- host: element.internal
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: element
port:
name: http
- host: gitea.internal
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: gitea
port:
name: http