[RIC-464] R5 - DevOps: create script for default general params 60/4160/2
authorAuthor Name <areli.fuss@intl.att.com>
Wed, 17 Jun 2020 10:42:40 +0000 (13:42 +0300)
committerFuss, Areli (af732p) <areli.fuss@intl.att.com>
Wed, 24 Jun 2020 16:26:32 +0000 (19:26 +0300)
Signed-off-by: Fuss, Areli (af732p) <areli.fuss@intl.att.com>
Change-Id: If2eadab6af227da20ed8114a3f99932eb1851cf8

helm/e2mgr/templates/deployment.yaml

index f5cbafe..4719f2c 100644 (file)
@@ -45,6 +45,14 @@ spec:
       hostname: {{ include "common.name.e2mgr" . }} 
       imagePullSecrets:
         - name: {{ include "common.dockerregistry.credential" $imagectx }}
+      initContainers:
+        - name: redis-init
+          image: "redis"
+          command:
+          - "/bin/sh"
+          args:
+          - '-c'
+          - "redis-cli -h {{ include "common.servicename.dbaas.tcp" . }} -p {{ include "common.serviceport.dbaas.redis" . }} SETNX \"{e2Manager},GENERAL\" \"{\"enableRic\":true}\""
       containers:
         - name: {{ include "common.containername.e2mgr" . }}
           image: {{ include "common.dockerregistry.url" $imagectx }}/{{ .Values.e2mgr.image.name }}:{{ .Values.e2mgr.image.tag }}