X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm%2Frsm%2Ftemplates%2Fdeployment.yaml;h=8a013069bba4a351882680b8ba0c976b3646d3ae;hb=refs%2Fchanges%2F47%2F2947%2F2;hp=edcfeee126fb1fc716c57874c2bd0296018c83b9;hpb=38dc857062b14145f5b9db89d10eba0ae5b90d11;p=ric-plt%2Fric-dep.git diff --git a/helm/rsm/templates/deployment.yaml b/helm/rsm/templates/deployment.yaml index edcfeee..8a01306 100644 --- a/helm/rsm/templates/deployment.yaml +++ b/helm/rsm/templates/deployment.yaml @@ -13,7 +13,8 @@ # See the License for the specific language governing permissions and # # limitations under the License. # ################################################################################ -{{- $imagectx := dict "ctx" . "defaultregistry" .Values.rsm.image.registry }} +{{- $imagectx := dict "ctx" . "defaultregistry" .Values.rsm.image.main.registry }} +{{- $initimagectx := dict "ctx" . "defaultregistry" .Values.rsm.image.init.registry }} {{- $pullpolicyctx := dict "ctx" . "defaultpullpolicy" .Values.rsm.imagePullPolicy }} apiVersion: apps/v1 kind: Deployment @@ -41,12 +42,17 @@ spec: app: {{ include "common.namespace.platform" . }}-{{ include "common.name.rsm" . }} release: {{ .Release.Name }} spec: + initContainers: + - name: redis-init + image: {{ include "common.dockerregistry.url" $initimagectx }}/{{ .Values.rsm.image.init.name }}:{{ .Values.rsm.image.init.tag }} + imagePullPolicy: {{ include "common.dockerregistry.pullpolicy" $pullpolicyctx }} + 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.dockerregistry.credential" $imagectx }} containers: - name: {{ include "common.containername.rsm" . }} - image: {{ include "common.dockerregistry.url" $imagectx }}/{{ .Values.rsm.image.name }}:{{ .Values.rsm.image.tag }} + image: {{ include "common.dockerregistry.url" $imagectx }}/{{ .Values.rsm.image.main.name }}:{{ .Values.rsm.image.main.tag }} imagePullPolicy: {{ include "common.dockerregistry.pullpolicy" $pullpolicyctx }} volumeMounts: - mountPath: /opt/RSM/router.txt