k8s: add exec probes to cartservice

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-07-07 17:10:52 -07:00
parent 0c1068aec6
commit 375e2d35dd

View file

@ -34,10 +34,6 @@ spec:
value: "7070" value: "7070"
- name: LISTEN_ADDR - name: LISTEN_ADDR
value: "0.0.0.0" value: "0.0.0.0"
# - name: GRPC_TRACE
# value: "all"
# - name: GRPC_VERBOSITY
# value: "debug"
resources: resources:
requests: requests:
cpu: 200m cpu: 200m
@ -46,11 +42,14 @@ spec:
cpu: 300m cpu: 300m
memory: 128Mi memory: 128Mi
readinessProbe: readinessProbe:
tcpSocket: initialDelaySeconds: 5
port: 7070 exec:
command: ["/cartservice_probe"]
livenessProbe: livenessProbe:
tcpSocket: initialDelaySeconds: 10
port: 7070 periodSeconds: 10
exec:
command: ["/cartservice_probe"]
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
@ -61,5 +60,6 @@ spec:
selector: selector:
app: cartservice app: cartservice
ports: ports:
- port: 7070 - name: grpc
port: 7070
targetPort: 7070 targetPort: 7070