Skip to content

Commit

Permalink
feat(kgo): add ability to specify probes (#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek authored Apr 29, 2024
1 parent 3604b7f commit 3fdef5c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 12 deletions.
2 changes: 1 addition & 1 deletion charts/gateway-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ maintainers:
name: gateway-operator
sources:
- https://github.com/Kong/charts/tree/main/charts/gateway-operator
version: 0.1.6
version: 0.1.7
appVersion: "1.2"
annotations:
artifacthub.io/prerelease: "false"
Expand Down
13 changes: 13 additions & 0 deletions charts/gateway-operator/ci/probes-and-args.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
livenessProbe:
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 1
periodSeconds: 1

readinessProbe:
initialDelaySeconds: 1
periodSeconds: 1

args:
- --zap-log-level=debug
14 changes: 3 additions & 11 deletions charts/gateway-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,11 @@ spec:
fieldPath: metadata.namespace
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
livenessProbe:
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
{{- toYaml .Values.livenessProbe | nindent 10 }}
readinessProbe:
httpGet:
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
{{- toYaml .Values.readinessProbe | nindent 10 }}
resources:
{{ toYaml .Values.resources | indent 10 }}
{{- toYaml .Values.resources | nindent 10 }}
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
Expand Down
15 changes: 15 additions & 0 deletions charts/gateway-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,21 @@ gwapi-standard-crds:
gwapi-experimental-crds:
enabled: false

# Customize gateway-operator livenessProbe.
livenessProbe:
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
# Customize gateway-operator readinessProbe.
readinessProbe:
httpGet:
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10

# Use this section to customize the requests and limits of gateway-operator
resources:
limits:
Expand Down

0 comments on commit 3fdef5c

Please sign in to comment.