Skip to content

Commit

Permalink
feat: add startup probe (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanDvorsky authored May 13, 2024
1 parent dde2458 commit b4a7c9d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm-charts/azure-api-management-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ their default values.
| `resources` | Pod resource requests & limits | `{}` |
| `probes.readiness` | Configuration for readiness probes of the container | Uses `/status-0123456789abcdef` as endpoint for HTTP probes |
| `probes.liveness` | Configuration for liveness probes of the container | Uses `/status-0123456789abcdef` as endpoint for HTTP probes |
| `probes.startup` | Configuration for startup probes of the container | Uses `/status-0123456789abcdef` as endpoint for HTTP probes |
| `securityContext` | Privilege and access control settings for the container | `{}` |
| `podSecurityContext` | Privilege and access control settings for the pod | `{}` |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ spec:
{{- toYaml .Values.probes.readiness | nindent 12 }}
livenessProbe:
{{- toYaml .Values.probes.liveness | nindent 12 }}
startupProbe:
{{- toYaml .Values.probes.startup | nindent 12 }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.securityContext }}
Expand Down
4 changes: 4 additions & 0 deletions helm-charts/azure-api-management-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ probes:
httpGet:
path: /status-0123456789abcdef
port: http
startup:
httpGet:
path: /status-0123456789abcdef
port: http

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down

0 comments on commit b4a7c9d

Please sign in to comment.