Add an ingress definition
This commit is contained in:
parent
9c6cc413f4
commit
1a782d4a29
2 changed files with 26 additions and 0 deletions
25
deploy/k8s-poc-demo/base/ingress.yaml
Normal file
25
deploy/k8s-poc-demo/base/ingress.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: k8s-poc-ingress
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: "nginx"
|
||||
#cert-manager.io/issuer: "letsencrypt-staging"
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- k8s-poc.distrilab.org
|
||||
secretName: k8s-poc-tls-secret
|
||||
rules:
|
||||
- host: k8s-poc.distrilab.org
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: k8s-poc-nginx-service
|
||||
port:
|
||||
number: 80
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- ingress.yaml
|
||||
|
|
Loading…
Reference in a new issue