1 ################################################################################
2 # Copyright (c) 2019 AT&T Intellectual Property. #
4 # Licensed under the Apache License, Version 2.0 (the "License"); #
5 # you may not use this file except in compliance with the License. #
6 # You may obtain a copy of the License at #
8 # http://www.apache.org/licenses/LICENSE-2.0 #
10 # Unless required by applicable law or agreed to in writing, software #
11 # distributed under the License is distributed on an "AS IS" BASIS, #
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
13 # See the License for the specific language governing permissions and #
14 # limitations under the License. #
15 ################################################################################
16 {{- $imagectx := dict "ctx" . "defaultregistry" .Values.rsm.image.main.registry }}
17 {{- $initimagectx := dict "ctx" . "defaultregistry" .Values.rsm.image.init.registry }}
18 {{- $pullpolicyctx := dict "ctx" . "defaultpullpolicy" .Values.rsm.imagePullPolicy }}
22 name: {{ include "common.deploymentname.rsm" .}}
23 namespace: {{ include "common.namespace.platform" . }}
25 app: {{ include "common.namespace.platform" . }}-{{ include "common.name.rsm" . }}
26 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
27 release: {{ .Release.Name }}
28 heritage: {{ .Release.Service }}
30 replicas: {{ .Values.rsm.replicaCount }}
33 app: {{ include "common.namespace.platform" . }}-{{ include "common.name.rsm" . }}
34 release: {{ .Release.Name }}
37 {{- if .Values.rsm.annotations }}
39 {{- .Values.rsm.annotations | nindent 8 -}}
42 app: {{ include "common.namespace.platform" . }}-{{ include "common.name.rsm" . }}
43 release: {{ .Release.Name }}
47 image: {{ include "common.dockerregistry.url" $initimagectx }}/{{ .Values.rsm.image.init.name }}:{{ .Values.rsm.image.init.tag }}
48 imagePullPolicy: {{ include "common.dockerregistry.pullpolicy" $pullpolicyctx }}
49 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']
50 hostname: {{ include "common.name.rsm" . }}
52 - name: {{ include "common.dockerregistry.credential" $imagectx }}
54 - name: {{ include "common.containername.rsm" . }}
55 image: {{ include "common.dockerregistry.url" $imagectx }}/{{ .Values.rsm.image.main.name }}:{{ .Values.rsm.image.main.tag }}
56 imagePullPolicy: {{ include "common.dockerregistry.pullpolicy" $pullpolicyctx }}
58 - mountPath: /opt/RSM/router.txt
59 name: local-router-file
61 - mountPath: /opt/RSM/resources/configuration.yaml
62 name: local-configuration-file
63 subPath: configuration.yaml
66 name: {{ include "common.configmapname.rsm" . }}-env
69 containerPort: {{ include "common.serviceport.rsm.http" . }}
71 containerPort: {{ include "common.serviceport.rsm.rmr.route" . }}
73 containerPort: {{ include "common.serviceport.rsm.rmr.data" . }}
77 privileged: {{ .Values.rsm.privilegedmode}}
79 - name: local-router-file
81 name: {{ include "common.configmapname.rsm" . }}-router-configmap
82 - name: local-configuration-file
84 name: {{ include "common.configmapname.rsm" . }}