AstroJS/k8s/ingress.yaml

34 lines
628 B
YAML
Raw Normal View History

2022-03-15 16:56:17 +00:00
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: default-astrojs
namespace: ingress-https
spec:
ingressClassName: nginx
tls:
- hosts:
- astrojs.k8s.astropenguin.net
secretName: any-k8s-astro-prod
rules:
- host: astrojs.k8s.astropenguin.net
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: default-astrojs
port:
number: 5000
---
kind: Service
apiVersion: v1
metadata:
name: default-astrojs
namespace: ingress-https
spec:
type: ExternalName
externalName: astrojs.default.svc.cluster.local