瀏覽代碼

Adding service annotation to helm chart service.yaml (#404)

* Adding service annotation to helm chart service.yaml

* Increasing values for the livenessProbe and readinessProbe. On AWS Fargate the container will enter into a 'boorloop' because it need more time to start compared the default values

Co-authored-by: andormarkus <andormarkus@marc-o-polo.com>
Andor Markus 4 年之前
父節點
當前提交
1b5e9b4bca
共有 2 個文件被更改,包括 10 次插入0 次删除
  1. 6 0
      charts/kafka-ui/templates/deployment.yaml
  2. 4 0
      charts/kafka-ui/templates/service.yaml

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

@@ -54,10 +54,16 @@ spec:
             httpGet:
               path: /
               port: http
+            initialDelaySeconds: 60
+            periodSeconds: 30
+            timeoutSeconds: 10
           readinessProbe:
             httpGet:
               path: /
               port: http
+            initialDelaySeconds: 60
+            periodSeconds: 30
+            timeoutSeconds: 10
           resources:
             {{- toYaml .Values.resources | nindent 12 }}
       {{- with .Values.nodeSelector }}

+ 4 - 0
charts/kafka-ui/templates/service.yaml

@@ -4,6 +4,10 @@ metadata:
   name: {{ include "kafka-ui.fullname" . }}
   labels:
     {{- include "kafka-ui.labels" . | nindent 4 }}
+{{- if .Values.service.annotations }}
+  annotations:
+{{ toYaml .Values.service.annotations | nindent 4 }}
+{{- end }}
 spec:
   type: {{ .Values.service.type }}
   ports: