adservice: use grpc health checks (#29)
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
880ee16be2
commit
360d983512
2 changed files with 11 additions and 10 deletions
|
@ -39,15 +39,15 @@ spec:
|
||||||
cpu: 300m
|
cpu: 300m
|
||||||
memory: 300Mi
|
memory: 300Mi
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
tcpSocket:
|
initialDelaySeconds: 20
|
||||||
port: 9555
|
periodSeconds: 5
|
||||||
initialDelaySeconds: 5
|
exec:
|
||||||
periodSeconds: 10
|
command: ["/bin/grpc_health_probe", "-addr=:9555"]
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
tcpSocket:
|
initialDelaySeconds: 20
|
||||||
port: 9555
|
periodSeconds: 5
|
||||||
initialDelaySeconds: 10
|
exec:
|
||||||
periodSeconds: 10
|
command: ["/bin/grpc_health_probe", "-addr=:9555"]
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# adsservice
|
|
||||||
FROM openjdk:8
|
FROM openjdk:8
|
||||||
RUN apt-get update && apt-get install net-tools telnet
|
RUN GRPC_HEALTH_PROBE_VERSION=v0.1.0-alpha.1 && \
|
||||||
|
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
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Next three steps are for caching dependency downloads
|
# Next three steps are for caching dependency downloads
|
||||||
|
|
Loading…
Reference in a new issue