grpc: add health checks to python services (#28)

also converted line endings for recommendationservice/requirements.txt from
dos to unix.
This commit is contained in:
Ahmet Alp Balkan 2018-09-19 12:34:56 -07:00 committed by GitHub
parent fc6df2daea
commit 880ee16be2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 331 additions and 259 deletions

View file

@ -30,12 +30,12 @@ spec:
- containerPort: 8080
readinessProbe:
periodSeconds: 5
tcpSocket:
port: 8080
exec:
command: ["/bin/grpc_health_probe", "-addr=:8080"]
livenessProbe:
periodSeconds: 5
tcpSocket:
port: 8080
exec:
command: ["/bin/grpc_health_probe", "-addr=:8080"]
resources:
requests:
cpu: 100m

View file

@ -30,12 +30,12 @@ spec:
- containerPort: 8080
readinessProbe:
periodSeconds: 5
tcpSocket:
port: 8080
exec:
command: ["/bin/grpc_health_probe", "-addr=:8080"]
livenessProbe:
periodSeconds: 5
tcpSocket:
port: 8080
exec:
command: ["/bin/grpc_health_probe", "-addr=:8080"]
env:
- name: PRODUCT_CATALOG_SERVICE_ADDR
value: "productcatalogservice:3550"