K3s-cluster/nginx/ingress.yaml

24 lines
545 B
YAML
Raw Normal View History

2022-06-24 18:43:24 +00:00
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
2022-06-24 18:43:24 +00:00
name: nginx-ingress
annotations:
kubernetes.io/ingress.class: "traefik"
2022-05-15 18:30:42 +00:00
spec:
2022-06-24 18:43:24 +00:00
tls:
- secretName: nginx-beta-tls
hosts:
- nginx.beta.halia.dev
rules:
- host: nginx.beta.halia.dev
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: nginx-svc
port:
number: 80