Skip to content

Commit

Permalink
Add readiness/liveness probes to vizier-core
Browse files Browse the repository at this point in the history
Signed-off-by: Koichiro Den <[email protected]>
  • Loading branch information
Koichiro Den committed Dec 4, 2018
1 parent ee1a1a2 commit 2fea722
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/manager/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ COPY --from=build-env /go/src/github.com/kubeflow/katib/cmd/manager/vizier-manag
COPY --from=build-env /go/src/github.com/kubeflow/katib/pkg/manager/visualise /
ENTRYPOINT ["./vizier-manager"]
CMD ["-w", "kubernetes"]
RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \
wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \
chmod +x /bin/grpc_health_probe
8 changes: 8 additions & 0 deletions manifests/vizier/core/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ spec:
ports:
- name: api
containerPort: 6789
readinessProbe:
exec:
command: ["/bin/grpc_health_probe", "-addr=:6789"]
initialDelaySeconds: 5
livenessProbe:
exec:
command: ["/bin/grpc_health_probe", "-addr=:6789"]
initialDelaySeconds: 10
# resources:
# requests:
# cpu: 500m
Expand Down

0 comments on commit 2fea722

Please sign in to comment.