kustomize ingress in overlay
This commit is contained in:
parent
630451aa5f
commit
62e6391035
3 changed files with 28 additions and 2 deletions
|
@ -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
|
||||
|
|
25
deploy/k8s-poc-demo/prod/ingress.yaml
Normal file
25
deploy/k8s-poc-demo/prod/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
|
||||
|
|
@ -4,3 +4,4 @@ namePrefix: prod-
|
|||
patchesStrategicMerge:
|
||||
- replicas.yaml
|
||||
- resources.yaml
|
||||
- ingress.yaml
|
||||
|
|
Loading…
Reference in a new issue