Add dual ingress
This commit is contained in:
parent
6f66eda86d
commit
b0449a0e25
30
portal/base/drive-ingress.yml
Normal file
30
portal/base/drive-ingress.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: drive-ingress
|
||||
namespace: portal
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: nginx
|
||||
spec:
|
||||
defaultBackend:
|
||||
service:
|
||||
name: portal-node
|
||||
port:
|
||||
number: 8080
|
||||
tls:
|
||||
- hosts:
|
||||
- drive.test.sunet.se
|
||||
secretName: drive-tls-secret
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: drive.test.sunet.se
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: portal-node
|
||||
port:
|
||||
number: 8080
|
|
@ -1,4 +1,5 @@
|
|||
resources:
|
||||
- drive-ingress.yml
|
||||
- portal-cert-manager.yml
|
||||
- portal-deployment.yml
|
||||
- portal-ingress.yml
|
||||
|
|
32
portal/overlays/prod/drive-ingress.yml
Normal file
32
portal/overlays/prod/drive-ingress.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: drive-ingress
|
||||
namespace: portal
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: nginx
|
||||
cert-manager.io/issuer: "letsencrypt"
|
||||
acme.cert-manager.io/http01-edit-in-place: "true"
|
||||
spec:
|
||||
defaultBackend:
|
||||
service:
|
||||
name: portal-node
|
||||
port:
|
||||
number: 8080
|
||||
ingressClassName: nginx
|
||||
tls:
|
||||
- hosts:
|
||||
- drive.sunet.se
|
||||
secretName: drive-tls-secret
|
||||
rules:
|
||||
- host: drive.sunet.se
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: portal-node
|
||||
port:
|
||||
number: 8080
|
|
@ -3,5 +3,6 @@ kind: Kustomization
|
|||
resources:
|
||||
- ../../base
|
||||
patches:
|
||||
- path: drive-ingress.yml
|
||||
- path: portal-ingress.yml
|
||||
- path: portal-deployment.yml
|
||||
|
|
32
portal/overlays/test/drive-ingress.yml
Normal file
32
portal/overlays/test/drive-ingress.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: drive-ingress
|
||||
namespace: portal
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: nginx
|
||||
cert-manager.io/issuer: "letsencrypt"
|
||||
acme.cert-manager.io/http01-edit-in-place: "true"
|
||||
spec:
|
||||
defaultBackend:
|
||||
service:
|
||||
name: portal-node
|
||||
port:
|
||||
number: 8080
|
||||
ingressClassName: nginx
|
||||
tls:
|
||||
- hosts:
|
||||
- drive.test.sunet.se
|
||||
secretName: drive-tls-secret
|
||||
rules:
|
||||
- host: drive.test.sunet.se
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: portal-node
|
||||
port:
|
||||
number: 8080
|
|
@ -3,5 +3,6 @@ kind: Kustomization
|
|||
resources:
|
||||
- ../../base
|
||||
patches:
|
||||
- path: drive-ingress.yml
|
||||
- path: portal-ingress.yml
|
||||
- path: portal-deployment.yml
|
||||
|
|
|
@ -17,10 +17,10 @@ spec:
|
|||
ingressClassName: nginx
|
||||
tls:
|
||||
- hosts:
|
||||
- drive.test.sunet.se
|
||||
- portal.drive.test.sunet.se
|
||||
secretName: tls-secret
|
||||
rules:
|
||||
- host: drive.test.sunet.se
|
||||
- host: portal.drive.test.sunet.se
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
|
|
Loading…
Reference in a new issue