Adding readiness and liveliness probes for BBSim
Change-Id: Iac6933c67a35926200c1ba19afdc20086e007785
diff --git a/bbsim/Chart.yaml b/bbsim/Chart.yaml
index f68cf2b..e49ada4 100644
--- a/bbsim/Chart.yaml
+++ b/bbsim/Chart.yaml
@@ -16,5 +16,5 @@
description: Broadband Simulator
icon: https://guide.opencord.org/logos/cord.svg
apiVersion: v1
-version: 4.1.3
+version: 4.1.4
appVersion: 1.4.0
diff --git a/bbsim/templates/deployment.yaml b/bbsim/templates/deployment.yaml
index c8d8b00..09e80c3 100644
--- a/bbsim/templates/deployment.yaml
+++ b/bbsim/templates/deployment.yaml
@@ -52,7 +52,22 @@
image: '{{ tpl .Values.images.bbsim.registry . }}{{ tpl .Values.images.bbsim.repository . }}:{{ tpl ( tpl .Values.images.bbsim.tag . ) . }}'
imagePullPolicy: {{ tpl .Values.images.bbsim.pullPolicy . }}
securityContext:
- privileged: true
+ privileged: {{ .Values.privileged }}
+ livenessProbe:
+ exec:
+ command:
+ - bbsimctl
+ - olt
+ - get
+ initialDelaySeconds: 5
+ periodSeconds: 30
+ readinessProbe:
+ httpGet:
+ path: /v2/cfg
+ port: {{ .Values.bbsim_sadis_port }}
+ httpHeaders:
+ initialDelaySeconds: 5
+ periodSeconds: 30
command: [
"/app/bbsim",
"-openolt_address", ":{{ .Values.olt_tcp_port }}",
diff --git a/bbsim/values.yaml b/bbsim/values.yaml
index 40c9636..0fc805b 100644
--- a/bbsim/values.yaml
+++ b/bbsim/values.yaml
@@ -84,3 +84,5 @@
tolerations: []
affinity: {}
+
+privileged: false