Skip to content

Commit

Permalink
Adds startupProbe to tyk-gateway (#376)
Browse files Browse the repository at this point in the history
Co-authored-by: Komal Sukhani <[email protected]>
  • Loading branch information
vanny96 and komalsukhani authored Feb 27, 2025
1 parent 29cced0 commit 847e684
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/tyk-gateway/templates/deployment-gw-repset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,9 @@ spec:
timeoutSeconds: 3
failureThreshold: 3
{{- end }}
{{- if .Values.gateway.startupProbe }}
startupProbe: {{- toYaml .Values.gateway.startupProbe | nindent 10}}
{{- end }}
{{- with .Values.gateway.extraContainers }}
{{- include "tyk-gateway.tplvalues.render" (dict "value" . "context" $) | nindent 6 }}
{{- end }}
Expand Down
13 changes: 13 additions & 0 deletions components/tyk-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,19 @@ gateway:
# failureThreshold: 3
readinessProbe: {}

# startupProbe values for gateway pod. All fields from PodStartupProbe object can be added here.
# If set to empty or nil, no startupProbe will be configured.
# startupProbe:
# httpGet:
# scheme: HTTP
# path: /hello
# port: 8080
# initialDelaySeconds: 1
# periodSeconds: 10
# timeoutSeconds: 3
# failureThreshold: 3
startupProbe: {}

# securityContext values for gateway pod. All fields from PodSecurityContext object can be added here.
securityContext:
runAsUser: 1000
Expand Down
13 changes: 13 additions & 0 deletions tyk-control-plane/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,19 @@ tyk-gateway:
# failureThreshold: 3
readinessProbe: {}

# startupProbe values for gateway pod. All fields from PodStartupProbe object can be added here.
# If set to empty or nil, no startupProbe will be configured.
# startupProbe:
# httpGet:
# scheme: HTTP
# path: /hello
# port: 8080
# initialDelaySeconds: 1
# periodSeconds: 10
# timeoutSeconds: 3
# failureThreshold: 3
startupProbe: {}

# securityContext values for gateway pod. All fields from PodSecurityContext object can be added here.
securityContext:
runAsUser: 1000
Expand Down
13 changes: 13 additions & 0 deletions tyk-data-plane/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,19 @@ tyk-gateway:
# failureThreshold: 3
readinessProbe: {}

# startupProbe values for gateway pod. All fields from PodStartupProbe object can be added here.
# If set to empty or nil, no startupProbe will be configured.
# startupProbe:
# httpGet:
# scheme: HTTP
# path: /hello
# port: 8080
# initialDelaySeconds: 1
# periodSeconds: 10
# timeoutSeconds: 3
# failureThreshold: 3
startupProbe: {}

# securityContext values for gateway pod. All fields from PodSecurityContext object can be added here.
securityContext:
runAsUser: 1000
Expand Down
13 changes: 13 additions & 0 deletions tyk-oss/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,19 @@ tyk-gateway:
# failureThreshold: 3
readinessProbe: {}

# startupProbe values for gateway pod. All fields from PodStartupProbe object can be added here.
# If set to empty or nil, no startupProbe will be configured.
# startupProbe:
# httpGet:
# scheme: HTTP
# path: /hello
# port: 8080
# initialDelaySeconds: 1
# periodSeconds: 10
# timeoutSeconds: 3
# failureThreshold: 3
startupProbe: {}

# securityContext values for gateway pod. All fields from PodSecurityContext object can be added here.
securityContext:
runAsUser: 1000
Expand Down
13 changes: 13 additions & 0 deletions tyk-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,19 @@ tyk-gateway:
# failureThreshold: 3
readinessProbe: {}

# startupProbe values for gateway pod. All fields from PodStartupProbe object can be added here.
# If set to empty or nil, no startupProbe will be configured.
# startupProbe:
# httpGet:
# scheme: HTTP
# path: /hello
# port: 8080
# initialDelaySeconds: 1
# periodSeconds: 10
# timeoutSeconds: 3
# failureThreshold: 3
startupProbe: {}

# securityContext values for gateway pod. All fields from PodSecurityContext object can be added here.
securityContext:
runAsUser: 1000
Expand Down

0 comments on commit 847e684

Please sign in to comment.