VOL-1739 [VOL-1742 Configure liveness and readiness probes in helm charts for simulated adapters]
Change-Id: I572fcdc29610dd1e7145886950e89292f5aabaf7
diff --git a/voltha-adapter-simulated/Chart.yaml b/voltha-adapter-simulated/Chart.yaml
index 42c1113..b87f1af 100644
--- a/voltha-adapter-simulated/Chart.yaml
+++ b/voltha-adapter-simulated/Chart.yaml
@@ -17,7 +17,7 @@
description: A Helm chart for Voltha Simulated Adaptyer based on K8S resources in Voltha project
icon: https://guide.opencord.org/logos/cord.svg
-version: 2.1.4
+version: 2.1.5
# appVersion is 2 because this chart contains multiple 2.x images that may have
# different individual image versions.
diff --git a/voltha-adapter-simulated/templates/adapters-simulated.yaml b/voltha-adapter-simulated/templates/adapters-simulated.yaml
index 4012c20..defea69 100644
--- a/voltha-adapter-simulated/templates/adapters-simulated.yaml
+++ b/voltha-adapter-simulated/templates/adapters-simulated.yaml
@@ -74,6 +74,20 @@
- "-core_topic=rwcore"
- "-simulator_topic=simulated_olt"
- "-onu_number={{ .Values.onus_per_pon_port }}"
+ - "-probe_port=8080"
+ livenessProbe:
+ httpGet:
+ path: /healthz
+ port: 8080
+ initialDelaySeconds: 10
+ periodSeconds: 5
+ readinessProbe:
+ httpGet:
+ path: /readz
+ port: 8080
+ initialDelaySeconds: 10
+ periodSeconds: 5
+
---
apiVersion: apps/v1
kind: Deployment
@@ -135,3 +149,16 @@
- "-kv_store_port={{ .Values.services.etcd.port }}"
- "-core_topic=rwcore"
- "-simulator_topic=simulated_onu"
+ - "-probe_port=8080"
+ livenessProbe:
+ httpGet:
+ path: /healthz
+ port: 8080
+ initialDelaySeconds: 10
+ periodSeconds: 5
+ readinessProbe:
+ httpGet:
+ path: /readz
+ port: 8080
+ initialDelaySeconds: 10
+ periodSeconds: 5