VOL-1730 - add probe configuration for ofagent
Change-Id: Id0107043f11519a4a1f630d3db00d999db5aa0dc
diff --git a/voltha/Chart.yaml b/voltha/Chart.yaml
index 5f82959..cf83679 100644
--- a/voltha/Chart.yaml
+++ b/voltha/Chart.yaml
@@ -17,7 +17,7 @@
description: A Helm chart for Voltha based on K8S resources in Voltha project
icon: https://guide.opencord.org/logos/cord.svg
-version: 2.1.11
+version: 2.1.12
# appVersion is 2 because this chart contains multiple 2.x images that may have
# different individual image versions.
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