backend/deploy/4-ingress.yaml

33 lines
715 B
YAML

---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: noded-ingress
namespace: noded
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: 'false'
spec:
tls:
- hosts:
- ${NODED_DOMAIN}
secretName: noded-tls-secret
ingressClassName: nginx
rules:
- host: ${NODED_DOMAIN}
http:
paths:
- pathType: Prefix
path: '/i/'
backend:
service:
name: noded-frontend
port:
number: 80
- pathType: Prefix
path: '/'
backend:
service:
name: noded-backend
port:
number: 80