Files
home-cluster-ops/kubernetes/apps/capacitor/app/ingress.yaml

32 lines
839 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: capacitor-ingress
namespace: capacitor
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
ingressClassName: nginx
rules:
- host: "capacitor.edward.sydney"
http:
paths:
- pathType: ImplementationSpecific
path: "/"
backend:
service:
name: capacitor
port:
number: 9000
- host: "capacitor.cluster.local"
http:
paths:
- pathType: ImplementationSpecific
path: "/"
backend:
service:
name: capacitor
port:
number: 9000