X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm%2Fo1mediator%2Ftemplates%2Fdeployment.yaml;h=71fc663ee6f0e847b6bb4e225785a93da2ecbe25;hb=08315b5889636ea63eb3f543ee86e206fe85a9ac;hp=3e38828d9abbd1055dc07604c0fa65647b6c5069;hpb=c76dbee8b056080967bb53cd59bdd12c9e875a86;p=ric-plt%2Fric-dep.git diff --git a/helm/o1mediator/templates/deployment.yaml b/helm/o1mediator/templates/deployment.yaml index 3e38828..71fc663 100644 --- a/helm/o1mediator/templates/deployment.yaml +++ b/helm/o1mediator/templates/deployment.yaml @@ -1,5 +1,5 @@ ################################################################################ -# Copyright (c) 2019 AT&T Intellectual Property. # +# Copyright (c) 2019,2020 AT&T Intellectual Property. # # Copyright (c) 2019 Nokia. # # # # Licensed under the Apache License, Version 2.0 (the "License"); # @@ -47,13 +47,19 @@ spec: hostname: {{ include "common.name.o1mediator" . }} imagePullSecrets: - name: {{ include "common.dockerregistry.credential" $imagectx }} + serviceAccountName: {{ include "common.serviceaccountname.o1mediator" . }} containers: - name: {{ include "common.containername.o1mediator" . }} image: {{ include "common.dockerregistry.url" $imagectx }}/{{ .Values.o1mediator.image.name }}:{{ .Values.o1mediator.image.tag }} imagePullPolicy: {{ include "common.dockerregistry.pullpolicy" $pullpolicyctx }} envFrom: + - configMapRef: + name: {{ include "common.configmapname.dbaas" . }}-appconfig - configMapRef: name: {{ include "common.configmapname.o1mediator" . }}-env + volumeMounts: + - mountPath: /etc/o1agent + name: appconfig-file ports: - name: http-supervise containerPort: {{ include "common.serviceport.o1mediator.http.supervise" . }} @@ -64,3 +70,7 @@ spec: - name: http-event containerPort: {{ include "common.serviceport.o1mediator.http.event" . }} protocol: TCP + volumes: + - name: appconfig-file + configMap: + name: {{ include "common.configmapname.o1mediator" . }}-appconfig-configmap