Add an ingress definition

This commit is contained in:
douzeb 2022-12-20 17:38:52 +01:00
parent 9c6cc413f4
commit 1a782d4a29
2 changed files with 26 additions and 0 deletions

View 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

View file

@ -1,3 +1,4 @@
resources: resources:
- deployment.yaml - deployment.yaml
- service.yaml - service.yaml
- ingress.yaml