X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm%2Fe2mgr%2Ftemplates%2Fdeployment.yaml;h=be648a55264a0206268ba4bd464a81be20f15c15;hb=6d0129c772e357ab5357502c800ab5e2f9fa5959;hp=a4fafa525426d25b57b11a2b866a3fe824985999;hpb=e18c48033c5f2ca8936710cc099c97b049859afd;p=ric-plt%2Fric-dep.git diff --git a/helm/e2mgr/templates/deployment.yaml b/helm/e2mgr/templates/deployment.yaml index a4fafa5..be648a5 100644 --- a/helm/e2mgr/templates/deployment.yaml +++ b/helm/e2mgr/templates/deployment.yaml @@ -16,6 +16,7 @@ ################################################################################ {{- $imagectx := dict "ctx" . "defaultregistry" .Values.e2mgr.image.registry }} {{- $pullpolicyctx := dict "ctx" . "defaultpullpolicy" .Values.e2mgr.imagePullPolicy }} +{{- $common_env := .Values.common_env_variables }} apiVersion: apps/v1 kind: Deployment metadata: @@ -45,14 +46,6 @@ 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 }} @@ -61,6 +54,8 @@ spec: - mountPath: /opt/E2Manager/router.txt name: local-router-file subPath: router.txt + - mountPath: /etc/config + name: e2mgr-loglevel-volume - mountPath: /opt/E2Manager/resources/configuration.yaml name: local-configuration-file subPath: configuration.yaml @@ -105,3 +100,10 @@ spec: - name: local-configuration-file configMap: name: {{ include "common.configmapname.e2mgr" . }}-configuration-configmap + - name: e2mgr-loglevel-volume + configMap: + name: {{ include "common.configmapname.e2mgr" . }}-loglevel-configmap + items: + - key: logcfg + path: log-level.yaml + mode: 0644