Explorar el Código

[helm] Allow Skip Certificates Verification in readiness and liveness probes (#2924)

* Allow Skip Certificates Verification in readiness and liveness probe

* Fixed chart version

* Allow Skip Certificates Verification in readiness and liveness probe

* Fixed chart version

* Rename of the variable use in values

* Allow Skip Certificates Verification in readiness and liveness probe

* Fixed chart version

* Rename of the variable use in values

* Fixed HTTPS scheme

Co-authored-by: Jose Antonio Cortes Lopez <jacortes@theworkshop.com>
José Antonio Cortés López hace 2 años
padre
commit
93af20c46c

+ 1 - 1
charts/kafka-ui/Chart.yaml

@@ -2,6 +2,6 @@ apiVersion: v2
 name: kafka-ui
 description: A Helm chart for kafka-UI
 type: application
-version: 0.4.5
+version: 0.4.6
 appVersion: v0.4.0
 icon: https://github.com/provectus/kafka-ui/raw/master/documentation/images/kafka-ui-logo.png

+ 6 - 0
charts/kafka-ui/templates/deployment.yaml

@@ -87,6 +87,9 @@ spec:
               {{- $contextPath := .Values.envs.config.SERVER_SERVLET_CONTEXT_PATH | default "" | printf "%s/actuator/health" | urlParse }}
               path: {{ get $contextPath "path" }}
               port: http
+              {{- if .Values.probes.useHttpsScheme }}
+              scheme: HTTPS
+              {{- end }}
             initialDelaySeconds: 60
             periodSeconds: 30
             timeoutSeconds: 10
@@ -95,6 +98,9 @@ spec:
               {{- $contextPath := .Values.envs.config.SERVER_SERVLET_CONTEXT_PATH | default "" | printf "%s/actuator/health" | urlParse }}
               path: {{ get $contextPath "path" }}
               port: http
+              {{- if .Values.probes.useHttpsScheme }}
+              scheme: HTTPS
+              {{- end }}
             initialDelaySeconds: 60
             periodSeconds: 30
             timeoutSeconds: 10

+ 5 - 0
charts/kafka-ui/values.yaml

@@ -73,6 +73,11 @@ podLabels: {}
 ##
 annotations: {}
 
+## Set field schema as HTTPS for readines and liveness probe
+##
+probes:
+  useHttpsScheme: false
+
 podSecurityContext:
   {}
   # fsGroup: 2000