Skip to content

Commit

Permalink
Fixing liveness and readiness probes for master deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
yevgeny-shnaidman committed May 7, 2024
1 parent f4a8788 commit 407957d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
14 changes: 4 additions & 10 deletions internal/deployment/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,8 @@ func getLivenessProbe() *corev1.Probe {
return &corev1.Probe{
InitialDelaySeconds: 10,
ProbeHandler: corev1.ProbeHandler{
Exec: &corev1.ExecAction{
Command: []string{
"/usr/bin/grpc_health_probe",
"-addr=:12000",
},
GRPC: &corev1.GRPCAction{
Port: 8082,
},
},
}
Expand All @@ -277,11 +274,8 @@ func getReadinessProbe() *corev1.Probe {
InitialDelaySeconds: 5,
FailureThreshold: 10,
ProbeHandler: corev1.ProbeHandler{
Exec: &corev1.ExecAction{
Command: []string{
"/usr/bin/grpc_health_probe",
"-addr=:12000",
},
GRPC: &corev1.GRPCAction{
Port: 8082,
},
},
}
Expand Down
12 changes: 4 additions & 8 deletions internal/deployment/testdata/test_master_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,11 @@ spec:
- ALL
readOnlyRootFilesystem: true
livenessProbe:
exec:
command:
- /usr/bin/grpc_health_probe
- -addr=:12000
grpc:
port: 8082
initialDelaySeconds: 10
readinessProbe:
exec:
command:
- /usr/bin/grpc_health_probe
- -addr=:12000
grpc:
port: 8082
failureThreshold: 10
initialDelaySeconds: 5

0 comments on commit 407957d

Please sign in to comment.