schema-registry - Templating for liveness/readiness probes (#6301)

* incubator/schema-registry v0.4.4 - templating for liveness/readiness probes

* Remove unnecessary '}' that breaks deployment template
This commit is contained in:
Javier Holguera
2018-06-25 10:57:03 -07:00
committed by k8s-ci-robot
parent 10ec54a4bc
commit c75e7d4034
3 changed files with 30 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name: schema-registry
home: https://docs.confluent.io/current/schema-registry/docs/index.html
version: 0.4.3
version: 0.4.4
appVersion: 4.0.1
keywords:
- confluent
@@ -67,14 +67,31 @@ spec:
httpGet:
path: /
port: {{ .Values.servicePort }}
{{- if not .Values.livenessProbe }}
initialDelaySeconds: 10
timeoutSeconds: 5
{{- else }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds | default 10}}
{{- if .Values.livenessProbe.periodSeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
{{- end }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds | default 5}}
{{- if .Values.livenessProbe.successThreshold }}
successThreshold: {{ .Values.livenessProbe.successThreshold }}
{{- end }}
{{- if .Values.livenessProbe.failureThreshold }}
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
{{- end }}
{{- end }}
readinessProbe:
httpGet:
path: /
port: {{ .Values.servicePort }}
initialDelaySeconds: 10
timeoutSeconds: 5
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds | default 10}}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds | default 5}}
successThreshold: {{ .Values.readinessProbe.successThreshold }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
env:
- name: SCHEMA_REGISTRY_HOST_NAME
valueFrom:
+10
View File
@@ -48,6 +48,16 @@ kafkaStore:
## Additional Java arguments to pass to Kafka.
# schemaRegistryOpts: -Dfoo=bar
## Readiness probe config.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/
##
readinessProbe:
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 3
# Options for connecting to SASL kafka brokers
sasl:
configPath: "/etc/kafka-config"