VOL-1739 [VOL-1742 Configure liveness and readiness probes in helm charts for simulated adapters]
Change-Id: I572fcdc29610dd1e7145886950e89292f5aabaf7
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