Skip to content

Commit

Permalink
Add readiness and liveness probes to the connector builder server OSS…
Browse files Browse the repository at this point in the history
… helm charts (#6552)
  • Loading branch information
brianjlai committed May 12, 2023
1 parent e06bc92 commit 7c7fa39
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 23 deletions.
45 changes: 22 additions & 23 deletions charts/airbyte-connector-builder-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,29 +87,28 @@ spec:
{{- toYaml .Values.extraEnv | nindent 8 }}
{{- end }}

# TODO: add a health check endpoint to connector builder server
# {{- if .Values.livenessProbe.enabled }}
# livenessProbe:
# httpGet:
# path: /api/v1/health
# port: http
# initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
# periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
# timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
# successThreshold: {{ .Values.livenessProbe.successThreshold }}
# failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
# {{- end }}
# {{- if .Values.readinessProbe.enabled }}
# readinessProbe:
# httpGet:
# path: /api/v1/health
# port: http
# initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
# periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
# timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
# successThreshold: {{ .Values.readinessProbe.successThreshold }}
# failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
# {{- end }}
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
httpGet:
path: /v1/health
port: http
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
successThreshold: {{ .Values.livenessProbe.successThreshold }}
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
{{- end }}
{{- if .Values.readinessProbe.enabled }}
readinessProbe:
httpGet:
path: /v1/health
port: http
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
successThreshold: {{ .Values.readinessProbe.successThreshold }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
{{- end }}

ports:
- name: http
Expand Down
32 changes: 32 additions & 0 deletions charts/airbyte/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1487,6 +1487,38 @@ connector-builder-server:
repository: airbyte/connector-atelier-server
pullPolicy: IfNotPresent

## Configure extra options for the server containers' liveness and readiness probes
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
## server.livenessProbe.enabled Enable livenessProbe on the server
## server.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
## server.livenessProbe.periodSeconds Period seconds for livenessProbe
## server.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
## server.livenessProbe.failureThreshold Failure threshold for livenessProbe
## server.livenessProbe.successThreshold Success threshold for livenessProbe
##
livenessProbe:
enabled: true
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
successThreshold: 1

## server.readinessProbe.enabled Enable readinessProbe on the server
## server.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
## server.readinessProbe.periodSeconds Period seconds for readinessProbe
## server.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
## server.readinessProbe.failureThreshold Failure threshold for readinessProbe
## server.readinessProbe.successThreshold Success threshold for readinessProbe
##
readinessProbe:
enabled: true
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
successThreshold: 1

## connector-builder-server resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
## We usually recommend not to specify default resources and to leave this as a conscious
Expand Down
32 changes: 32 additions & 0 deletions charts/airbyte/values.yaml.test
Original file line number Diff line number Diff line change
Expand Up @@ -1462,6 +1462,38 @@ connector-builder-server:
repository: airbyte/connector-atelier-server
pullPolicy: IfNotPresent

## Configure extra options for the server containers' liveness and readiness probes
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
## server.livenessProbe.enabled Enable livenessProbe on the server
## server.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
## server.livenessProbe.periodSeconds Period seconds for livenessProbe
## server.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
## server.livenessProbe.failureThreshold Failure threshold for livenessProbe
## server.livenessProbe.successThreshold Success threshold for livenessProbe
##
livenessProbe:
enabled: true
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
successThreshold: 1

## server.readinessProbe.enabled Enable readinessProbe on the server
## server.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
## server.readinessProbe.periodSeconds Period seconds for readinessProbe
## server.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
## server.readinessProbe.failureThreshold Failure threshold for readinessProbe
## server.readinessProbe.successThreshold Success threshold for readinessProbe
##
readinessProbe:
enabled: true
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
successThreshold: 1

## connector-builder-server resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
## We usually recommend not to specify default resources and to leave this as a conscious
Expand Down

0 comments on commit 7c7fa39

Please sign in to comment.