Skip to content

Commit

Permalink
adding kubernetes probes (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtallcampbell authored Jul 31, 2024
1 parent 1b8a143 commit 8b95f82
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions chart/templates/_service.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,21 @@ spec:
{{- end }}
containers:
- name: {{ $serviceValues.appName | quote }}
{{- if or $serviceValues.appHealthChecks $serviceValues.debugShim }}
ports:
- name: liveness-port
containerPort: 50051
livenessProbe:
grpc:
port: 50051
failureThreshold: 2
periodSeconds: 5
startupProbe:
grpc:
port: 50051
failureThreshold: 100
periodSeconds: 5
{{- end }}
{{- if $serviceValues.securityContext }}
securityContext:
{{- range $index, $securityContext := $serviceValues.securityContext }}
Expand Down
7 changes: 7 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ services:
appConfig:
- name: messageResponseTimeoutMS
value: 15000
appHealthChecks: false
appName: platform-mts
buildService:
dockerFile: Dockerfile.buildsvc.app
Expand All @@ -198,6 +199,7 @@ services:
workingDir: /workspaces/platform-mts
deployment:
appName: platform-deployment
appHealthChecks: false
buildService:
dockerFile: Dockerfile.buildsvc.app
contextDir: build/dotnet
Expand Down Expand Up @@ -254,6 +256,7 @@ services:
- name: enableRoutingToMTS
value: true
appName: vth
appHealthChecks: false
buildService:
dockerFile: Dockerfile.buildsvc.app
contextDir: build/dotnet
Expand All @@ -278,6 +281,7 @@ services:
- name: messageResponseTimeoutMS
value: 15000
appName: hostsvc-sensor
appHealthChecks: false
buildService:
dockerFile: Dockerfile.buildsvc.app
contextDir: build/dotnet
Expand Down Expand Up @@ -305,6 +309,7 @@ services:
- name: allowLinksToDeploymentSvc
value: false
appName: hostsvc-link
appHealthChecks: false
buildService:
dockerFile: Dockerfile.buildsvc.app
contextDir: build/dotnet
Expand Down Expand Up @@ -332,6 +337,7 @@ services:
- name: writeTelemetryToLog
value: true
appName: hostsvc-logging
appHealthChecks: false
buildService:
dockerFile: Dockerfile.buildsvc.app
contextDir: build/dotnet
Expand All @@ -350,6 +356,7 @@ services:
workingDir: /workspaces/hostsvc-logging
position:
appName: hostsvc-position
appHealthChecks: false
buildService:
dockerFile: Dockerfile.buildsvc.app
contextDir: build/dotnet
Expand Down

0 comments on commit 8b95f82

Please sign in to comment.