From a48d8660369c0f04c12d43118f4440b55866bf3a Mon Sep 17 00:00:00 2001 From: Cedric Verstraeten Date: Wed, 30 Oct 2024 21:42:25 +0100 Subject: [PATCH] upgrade to 0.63.0 - missing ingress --- charts/hub/Chart.yaml | 2 +- .../hub/templates/kerberos-hub/hub-api.yaml | 30 +++++++++++++++++++ .../kerberos-hub/hub-frontend-demo.yaml | 30 +++++++++++++++++++ 3 files changed, 61 insertions(+), 1 deletion(-) diff --git a/charts/hub/Chart.yaml b/charts/hub/Chart.yaml index 36f8615..5df00a7 100644 --- a/charts/hub/Chart.yaml +++ b/charts/hub/Chart.yaml @@ -16,7 +16,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.62.0 +version: 0.63.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/hub/templates/kerberos-hub/hub-api.yaml b/charts/hub/templates/kerberos-hub/hub-api.yaml index 834030c..de813fc 100644 --- a/charts/hub/templates/kerberos-hub/hub-api.yaml +++ b/charts/hub/templates/kerberos-hub/hub-api.yaml @@ -97,6 +97,36 @@ spec: {{- end }} {{ end }} --- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: oauth2-proxy + namespace: kube-system + annotations: + kubernetes.io/ingress.class: {{ .Values.ingress }} + {{- if eq .Values.ingress "nginx" }} + cert-manager.io/cluster-issuer: letsencrypt-prod + kubernetes.io/tls-acme: "true" + nginx.ingress.kubernetes.io/ssl-redirect: "true" + {{- end }} +spec: + ingressClassName: nginx + rules: + - host: "{{ .Values.kerberoshub.api.url }}" + http: + paths: + - path: /oauth2 + pathType: Prefix + backend: + service: + name: oauth2-proxy + port: + number: 4180 + tls: + - hosts: + - "{{ .Values.kerberoshub.api.url }}" + secretName: +--- apiVersion: apps/v1 kind: Deployment metadata: diff --git a/charts/hub/templates/kerberos-hub/hub-frontend-demo.yaml b/charts/hub/templates/kerberos-hub/hub-frontend-demo.yaml index a56ab98..28a9d8d 100644 --- a/charts/hub/templates/kerberos-hub/hub-frontend-demo.yaml +++ b/charts/hub/templates/kerberos-hub/hub-frontend-demo.yaml @@ -64,6 +64,36 @@ spec: servicePort: 80 {{ end }} --- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: oauth2-proxy + namespace: kube-system + annotations: + kubernetes.io/ingress.class: {{ .Values.ingress }} + {{- if eq .Values.ingress "nginx" }} + cert-manager.io/cluster-issuer: letsencrypt-prod + kubernetes.io/tls-acme: "true" + nginx.ingress.kubernetes.io/ssl-redirect: "true" + {{- end }} +spec: + ingressClassName: nginx + rules: + - host: "{{ .Values.kerberoshub.frontend.demoUrl }}" + http: + paths: + - path: /oauth2 + pathType: Prefix + backend: + service: + name: oauth2-proxy + port: + number: 4180 + tls: + - hosts: + - "{{ .Values.kerberoshub.frontend.demoUrl }}" + secretName: +--- apiVersion: apps/v1 kind: Deployment metadata: