Skip to content

Commit

Permalink
Allow customizing livenessProbe and readinessProbe
Browse files Browse the repository at this point in the history
  • Loading branch information
louischan-oursky committed Mar 23, 2023
1 parent 611986a commit e7654ba
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 30 deletions.
8 changes: 2 additions & 6 deletions authgear/templates/authgear-admin-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,9 @@ spec:
containerPort: 3002
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
port: http
{{- toYaml .Values.authgear.adminServer.livenessProbe | nindent 10 }}
readinessProbe:
httpGet:
path: /healthz
port: http
{{- toYaml .Values.authgear.adminServer.readinessProbe | nindent 10 }}
resources:
{{- toYaml .Values.authgear.adminServer.resources | nindent 10 }}
---
Expand Down
8 changes: 2 additions & 6 deletions authgear/templates/authgear-images-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,9 @@ spec:
containerPort: 3004
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
port: http
{{- toYaml .Values.authgear.imagesServer.livenessProbe | nindent 10 }}
readinessProbe:
httpGet:
path: /healthz
port: http
{{- toYaml .Values.authgear.imagesServer.readinessProbe | nindent 10 }}
resources:
{{- toYaml .Values.authgear.imagesServer.resources | nindent 10 }}
---
Expand Down
8 changes: 2 additions & 6 deletions authgear/templates/authgear-main-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,9 @@ spec:
containerPort: 3000
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
port: http
{{- toYaml .Values.authgear.mainServer.livenessProbe | nindent 10 }}
readinessProbe:
httpGet:
path: /healthz
port: http
{{- toYaml .Values.authgear.mainServer.readinessProbe | nindent 10}}
resources:
{{- toYaml .Values.authgear.mainServer.resources | nindent 10 }}
---
Expand Down
8 changes: 2 additions & 6 deletions authgear/templates/authgear-portal-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,9 @@ spec:
containerPort: 3003
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
port: portal
{{- toYaml .Values.authgear.portalServer.livenessProbe | nindent 10 }}
readinessProbe:
httpGet:
path: /healthz
port: portal
{{- toYaml .Values.authgear.portalServer.readinessProbe | nindent 10 }}
resources:
{{- toYaml .Values.authgear.portalServer.resources | nindent 10 }}
---
Expand Down
8 changes: 2 additions & 6 deletions authgear/templates/authgear-resolver-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,9 @@ spec:
containerPort: 3001
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
port: http
{{- toYaml .Values.authgear.resolverServer.livenessProbe | nindent 10 }}
readinessProbe:
httpGet:
path: /healthz
port: http
{{- toYaml .Values.authgear.resolverServer.readinessProbe | nindent 10 }}
resources:
{{- toYaml .Values.authgear.resolverServer.resources | nindent 10 }}
---
Expand Down
40 changes: 40 additions & 0 deletions authgear/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@ authgear:
limits:
cpu: 500m
memory: 256Mi
livenessProbe:
httpGet:
path: /healthz
port: http
readinessProbe:
httpGet:
path: /healthz
port: http

adminServer:
replicas: 1
Expand All @@ -134,6 +142,14 @@ authgear:
limits:
cpu: 500m
memory: 256Mi
livenessProbe:
httpGet:
path: /healthz
port: http
readinessProbe:
httpGet:
path: /healthz
port: http

resolverServer:
replicas: 1
Expand All @@ -149,6 +165,14 @@ authgear:
limits:
cpu: 500m
memory: 256Mi
livenessProbe:
httpGet:
path: /healthz
port: http
readinessProbe:
httpGet:
path: /healthz
port: http

background:
replicas: 1
Expand Down Expand Up @@ -197,6 +221,14 @@ authgear:
limits:
cpu: 1000m
memory: 1Gi
livenessProbe:
httpGet:
path: /healthz
port: http
readinessProbe:
httpGet:
path: /healthz
port: http

portalServerProxy:
image: nginx:1.18
Expand Down Expand Up @@ -234,6 +266,14 @@ authgear:
limits:
cpu: 500m
memory: 256Mi
livenessProbe:
httpGet:
path: /healthz
port: portal
readinessProbe:
httpGet:
path: /healthz
port: portal

deno:
image: __replace_me__
Expand Down

0 comments on commit e7654ba

Please sign in to comment.