kustomize ingress in overlay

This commit is contained in:
douzeb 2022-12-21 02:00:43 +01:00
parent 630451aa5f
commit 62e6391035
3 changed files with 28 additions and 2 deletions

View file

@ -9,10 +9,10 @@ metadata:
spec:
tls:
- hosts:
- k8s-poc.distrilab.org
- k8s-poc.example.com
secretName: k8s-poc-tls-secret
rules:
- host: k8s-poc.distrilab.org
- host: k8s-poc.example.com
http:
paths:
- pathType: Prefix

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

@ -4,3 +4,4 @@ namePrefix: prod-
patchesStrategicMerge:
- replicas.yaml
- resources.yaml
- ingress.yaml