Add ingress

This commit is contained in:
Micke Nordin 2024-06-28 12:27:58 +02:00
parent da9a983596
commit 79949532c7
4 changed files with 62 additions and 0 deletions

View file

@ -1,3 +1,4 @@
--- ---
resources: [spark-ingress.yml]
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization

View file

@ -0,0 +1,30 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: spark-ingress
annotations:
kubernetes.io/ingress.class: nginx
spec:
ingressClassName: nginx
defaultBackend:
service:
name: spark-ui-proxy
port:
number: 80
tls:
- hosts:
- spark.drive.test.sunet.se
secretName: tls-secret
rules:
- host: spark.drive.test.sunet.se
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: spark-ui-proxy
port:
number: 80

View file

@ -1,6 +1,7 @@
--- ---
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: [../../base/]
helmCharts: helmCharts:
- includeCRDs: true - includeCRDs: true
name: spark name: spark

View file

@ -0,0 +1,30 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: spark-ingress
annotations:
kubernetes.io/ingress.class: nginx
spec:
ingressClassName: nginx
defaultBackend:
service:
name: spark-ui-proxy
port:
number: 80
tls:
- hosts:
- spark.drive.test.sunet.se
secretName: tls-secret
rules:
- host: spark.drive.test.sunet.se
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: spark-ui-proxy
port:
number: 80