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:
|
spec:
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- k8s-poc.distrilab.org
|
- k8s-poc.example.com
|
||||||
secretName: k8s-poc-tls-secret
|
secretName: k8s-poc-tls-secret
|
||||||
rules:
|
rules:
|
||||||
- host: k8s-poc.distrilab.org
|
- host: k8s-poc.example.com
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- pathType: Prefix
|
- 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:
|
patchesStrategicMerge:
|
||||||
- replicas.yaml
|
- replicas.yaml
|
||||||
- resources.yaml
|
- resources.yaml
|
||||||
|
- ingress.yaml
|
||||||
|
|
Loading…
Reference in a new issue