From: ronit Date: Mon, 2 Dec 2019 10:44:51 +0000 (+0200) Subject: adding rsm redis init X-Git-Tag: 2.0.6~9 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=9df47ce208eed816d87cc2211fc23ab10e54ae86;p=it%2Fdep.git adding rsm redis init Change-Id: Iba302e1e808e563e6900c71bce294b3f175b382b Signed-off-by: ronit --- diff --git a/ric-platform/50-RIC-Platform/helm/rsm/templates/deployment.yaml b/ric-platform/50-RIC-Platform/helm/rsm/templates/deployment.yaml index 49005392..28c836f5 100755 --- a/ric-platform/50-RIC-Platform/helm/rsm/templates/deployment.yaml +++ b/ric-platform/50-RIC-Platform/helm/rsm/templates/deployment.yaml @@ -40,6 +40,12 @@ spec: app: {{ include "common.namespace.platform" . }}-{{ include "common.name.rsm" . }} release: {{ .Release.Name }} spec: + initContainers: + - name: redis-init + image: "redis" + imagePullPolicy: IfNotPresent + command: ['sh', '-c', 'redis-cli -h service-ricplt-dbaas-tcp -p 6379 set "{rsm},CFG:GENERAL:v1.0.0" "{\"enableResourceStatus\":true,\"partialSuccessAllowed\":true,\"prbPeriodic\":true,\"tnlLoadIndPeriodic\":true,\"wwLoadIndPeriodic\":true,\"absStatusPeriodic\":true,\"rsrpMeasurementPeriodic\":true,\"csiPeriodic\":true,\"periodicityMs\":1,\"periodicityRsrpMeasurementMs\":3,\"periodicityCsiMs\":4}" nx'] + hostname: {{ include "common.name.rsm" . }} imagePullSecrets: - name: {{ include "common.repositoryCred" . }}