From 93b8c785a10ad6abfb426b8b36ed81452c150427 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Mon, 19 Jun 2023 07:15:19 +0200 Subject: [PATCH] add the ingress class to the ingresses to improve compatibility in the early stages of the cluster creation, where the default class is not yet propagated. --- argo/ingress.yaml | 1 + grafana/values.yaml | 1 + longhorn/values.yaml | 1 + prometheus/ingress.yaml | 2 ++ tests/test-ingress.yaml | 1 + tests/test-storage.yaml | 1 + 6 files changed, 7 insertions(+) diff --git a/argo/ingress.yaml b/argo/ingress.yaml index fd1e497..53caf68 100644 --- a/argo/ingress.yaml +++ b/argo/ingress.yaml @@ -7,6 +7,7 @@ metadata: annotations: nginx.org/ssl-services: "argocd-server" spec: + ingressClassName: nginx rules: - host: "argo.services.yolokube.de" http: diff --git a/grafana/values.yaml b/grafana/values.yaml index 8f9d624..8cdb42f 100644 --- a/grafana/values.yaml +++ b/grafana/values.yaml @@ -5,3 +5,4 @@ ingress: enabled: true hosts: - grafana.services.yolokube.de + ingressClassName: nginx \ No newline at end of file diff --git a/longhorn/values.yaml b/longhorn/values.yaml index 673a110..3ed9b78 100644 --- a/longhorn/values.yaml +++ b/longhorn/values.yaml @@ -5,4 +5,5 @@ defaultSettings: replicaAutoBalance: best-effort ingress: enabled: true + ingressClassName: nginx host: longhorn.services.yolokube.de \ No newline at end of file diff --git a/prometheus/ingress.yaml b/prometheus/ingress.yaml index 5f560d2..10f41e4 100644 --- a/prometheus/ingress.yaml +++ b/prometheus/ingress.yaml @@ -7,6 +7,7 @@ metadata: annotations: nginx.org/basic-auth-secret: prometheus-basic-auth-secret spec: + ingressClassName: nginx rules: - host: "prometheus.services.yolokube.de" http: @@ -27,6 +28,7 @@ metadata: annotations: nginx.org/basic-auth-secret: prometheus-basic-auth-secret spec: + ingressClassName: nginx rules: - host: "alertmanager.services.yolokube.de" http: diff --git a/tests/test-ingress.yaml b/tests/test-ingress.yaml index 0a3e556..4468f92 100644 --- a/tests/test-ingress.yaml +++ b/tests/test-ingress.yaml @@ -47,6 +47,7 @@ metadata: name: test1-ingress namespace: aaron-test spec: + ingressClassName: nginx rules: - host: "test.apps.yolokube.de" http: diff --git a/tests/test-storage.yaml b/tests/test-storage.yaml index 2916d9c..ac9c3ba 100644 --- a/tests/test-storage.yaml +++ b/tests/test-storage.yaml @@ -69,6 +69,7 @@ metadata: name: paste-ingress namespace: paste spec: + ingressClassName: nginx rules: - host: "paste.apps.yolokube.de" http: