Add dual ingress

This commit is contained in:
Micke Nordin 2024-12-03 15:24:42 +01:00
parent 6f66eda86d
commit b0449a0e25
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257
7 changed files with 99 additions and 2 deletions

View 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

View file

@ -1,4 +1,5 @@
resources: resources:
- drive-ingress.yml
- portal-cert-manager.yml - portal-cert-manager.yml
- portal-deployment.yml - portal-deployment.yml
- portal-ingress.yml - portal-ingress.yml

View 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

View file

@ -3,5 +3,6 @@ kind: Kustomization
resources: resources:
- ../../base - ../../base
patches: patches:
- path: drive-ingress.yml
- path: portal-ingress.yml - path: portal-ingress.yml
- path: portal-deployment.yml - path: portal-deployment.yml

View 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

View file

@ -3,5 +3,6 @@ kind: Kustomization
resources: resources:
- ../../base - ../../base
patches: patches:
- path: drive-ingress.yml
- path: portal-ingress.yml - path: portal-ingress.yml
- path: portal-deployment.yml - path: portal-deployment.yml

View file

@ -17,10 +17,10 @@ spec:
ingressClassName: nginx ingressClassName: nginx
tls: tls:
- hosts: - hosts:
- drive.test.sunet.se - portal.drive.test.sunet.se
secretName: tls-secret secretName: tls-secret
rules: rules:
- host: drive.test.sunet.se - host: portal.drive.test.sunet.se
http: http:
paths: paths:
- path: / - path: /