netflux-kubernetes/deploy/base/ingress.yaml

67 lines
1.4 KiB
YAML
Raw Normal View History

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress
2022-05-17 07:16:24 +00:00
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 5m
nginx.ingress.kubernetes.io/server-snippet: |
if ($http_user_agent ~* "BLEXBot|SemrushBot|AhrefsBot" ) {
2022-05-17 07:16:24 +00:00
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
2022-05-11 09:18:49 +00:00
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: invidious
port:
name: http
- host: element.internal
2022-05-11 18:21:35 +00:00
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: element
port:
name: http
2022-05-18 16:11:15 +00:00
# See the comment in the drone-config configMapGenerator in
# dev/kustomization.yaml:
- host: gitea.internal
2022-05-16 20:23:53 +00:00
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: gitea
port:
name: http
2022-05-18 16:11:15 +00:00
- host: drone.internal
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: drone
port:
name: http