From dda8fe1037ec2ece96b3d013a179e070665cb0fd Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 31 Oct 2024 08:34:40 +0100 Subject: [PATCH 1/2] fix: ingress controller enabled --- charts/openlit/Chart.yaml | 2 +- charts/openlit/templates/client.yaml | 6 ++++-- charts/openlit/templates/ingress.yml | 2 +- charts/openlit/values.yaml | 12 ++++++------ 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/charts/openlit/Chart.yaml b/charts/openlit/Chart.yaml index 3a7ff0d..119ceb8 100644 --- a/charts/openlit/Chart.yaml +++ b/charts/openlit/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: openlit description: A Helm chart for OpenLIT type: application -version: 1.11.2 +version: 1.11.3 appVersion: 1.11.0 icon: https://avatars.githubusercontent.com/u/149867240?s=200&v=4 diff --git a/charts/openlit/templates/client.yaml b/charts/openlit/templates/client.yaml index 18cbd55..c33679f 100644 --- a/charts/openlit/templates/client.yaml +++ b/charts/openlit/templates/client.yaml @@ -176,14 +176,16 @@ spec: {{- if .Values.nodeSelector }} {{ toYaml .Values.nodeSelector | nindent 8 }} {{- else }} - kubernetes.io/os: linux + kubernetes.io/arch: amd64 {{- end }} {{- if .Values.tolerations }} tolerations: {{- toYaml .Values.tolerations | nindent 8 }} {{- end }} + {{- if .Values.affinity }} affinity: - {{ toYaml .Values.affinity | nindent 8 }} + {{- toYaml .Values.affinity | nindent 8 }} + {{- end }} --- apiVersion: v1 kind: Service diff --git a/charts/openlit/templates/ingress.yml b/charts/openlit/templates/ingress.yml index 48c08d0..5a8b716 100644 --- a/charts/openlit/templates/ingress.yml +++ b/charts/openlit/templates/ingress.yml @@ -50,7 +50,7 @@ spec: backend: {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} service: - name: {{ include "openlit.fullname" . }} + name: openlit port: number: {{ $svcPort }} {{- else }} diff --git a/charts/openlit/values.yaml b/charts/openlit/values.yaml index 7e4e325..6bbda1f 100644 --- a/charts/openlit/values.yaml +++ b/charts/openlit/values.yaml @@ -120,8 +120,8 @@ clickhouse: # Ingress configuration (for exposing OpenLIT via an ingress) ingress: - enabled: false - className: "" + enabled: true + className: "nginx" annotations: {} # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: "true" @@ -130,7 +130,7 @@ ingress: paths: - path: / pathType: ImplementationSpecific - tls: [] - # - secretName: chart-example-tls - # hosts: - # - chart-example.local + tls: + - secretName: chart-example-tls + hosts: + - chart-example.local From 61a1d47a0cf80da0a3439f7a7cdfada11e99c4d2 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 31 Oct 2024 08:53:20 +0100 Subject: [PATCH 2/2] fix: openlit ingress --- charts/openlit/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/openlit/values.yaml b/charts/openlit/values.yaml index 6bbda1f..1b98e28 100644 --- a/charts/openlit/values.yaml +++ b/charts/openlit/values.yaml @@ -120,7 +120,7 @@ clickhouse: # Ingress configuration (for exposing OpenLIT via an ingress) ingress: - enabled: true + enabled: false className: "nginx" annotations: {} # kubernetes.io/ingress.class: nginx