VOL-1730 - add probe configuration for ofagent
Change-Id: Id0107043f11519a4a1f630d3db00d999db5aa0dc
diff --git a/voltha/templates/ofagent.yaml b/voltha/templates/ofagent.yaml
index 0e9dc49..3f46deb 100644
--- a/voltha/templates/ofagent.yaml
+++ b/voltha/templates/ofagent.yaml
@@ -70,3 +70,16 @@
- "-v"
- "--controller=$(CONTROLLER_SERVICE)"
- "--grpc-endpoint=voltha-api.{{ .Release.Namespace }}.svc.cluster.local:55555"
+ - "--probe=:8080"
+ livenessProbe:
+ httpGet:
+ path: /healthz
+ port: 8080
+ initialDelaySeconds: 10
+ periodSeconds: 5
+ readinessProbe:
+ httpGet:
+ path: /readz
+ port: 8080
+ initialDelaySeconds: 10
+ periodSeconds: 5