1 ################################################################################
2 # Copyright (c) 2019 AT&T Intellectual Property. #
3 # Copyright (c) 2019 Nokia. #
5 # Licensed under the Apache License, Version 2.0 (the "License"); #
6 # you may not use this file except in compliance with the License. #
7 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
11 # Unless required by applicable law or agreed to in writing, software #
12 # distributed under the License is distributed on an "AS IS" BASIS, #
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
14 # See the License for the specific language governing permissions and #
15 # limitations under the License. #
16 ################################################################################
18 {{- $secretPath := .Values.appmgr.appsecretpath | default "/opt/ric/secret" }}
19 {{- $imagectx := dict "ctx" . "defaultregistry" .Values.appmgr.image.appmgr.registry }}
23 name: {{ include "common.deploymentname.appmgr" . }}
24 namespace: {{ include "common.namespace.platform" . }}
26 app: {{ include "common.namespace.platform" . }}-{{ include "common.name.appmgr" . }}
27 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
28 release: {{ .Release.Name }}
29 heritage: {{ .Release.Service }}
31 replicas: {{ .Values.appmgr.replicaCount }}
34 app: {{ include "common.namespace.platform" . }}-{{ include "common.name.appmgr" . }}
35 release: {{ .Release.Name }}
38 {{- if .Values.appmgr.annotations }}
40 {{- .Values.appmgr.annotations | nindent 8 -}}
43 app: {{ include "common.namespace.platform" . }}-{{ include "common.name.appmgr" . }}
44 release: {{ .Release.Name }}
46 hostname: {{ include "common.name.appmgr" . }}
47 serviceAccountName: {{ include "common.serviceaccountname.appmgr" . }}
49 - name: {{ include "common.dockerregistry.credential" $imagectx }}
51 - name: {{ include "common.containername.appmgr" . }}
52 {{- $newctx := dict "ctx" $topCtx "defaultregistry" .Values.appmgr.image.appmgr.registry }}
53 image: {{ include "common.dockerregistry.url" $newctx }}/{{ .Values.appmgr.image.appmgr.name }}:{{ .Values.appmgr.image.appmgr.tag }}
54 {{- $newctx := dict "ctx" $topCtx "defaultpullpolicy" .Values.appmgr.imagePullPolicy }}
55 imagePullPolicy: {{ include "common.dockerregistry.pullpolicy" $newctx }}
58 containerPort: {{ include "common.serviceport.appmgr.http" . }}
61 containerPort: {{ include "common.serviceport.appmgr.rmr.route" . }}
64 containerPort: {{ include "common.serviceport.appmgr.rmr.data" . }}
68 mountPath: {{ .Values.appmgr.appconfigpath }}/appmgr.yaml
70 - name: helm-secret-volume
71 mountPath: {{ $secretPath }}
74 mountPath: {{ $secretPath }}/helm_repo_username
75 subPath: helm_repo_username
77 mountPath: {{ $secretPath }}/helm_repo_password
78 subPath: helm_repo_password
81 name: {{ include "common.configmapname.appmgr" . }}-env
83 name: {{ include "common.configmapname.dbaas" . }}-appconfig
89 # - ps -ef | grep {{ .Values.livenessprocessname }}| grep -v "grep"
90 #initialDelaySeconds: 120
99 #allowPrivilegeEscalation: false
100 restartPolicy: Always
102 - name: config-volume
104 name: {{ include "common.configmapname.appmgr" . }}-appconfig
105 - name: secret-volume
107 secretName: {{ include "common.secretname.appmgr" . }}
108 - name: helm-secret-volume
110 - name: appmgr-bin-volume
112 name: {{ include "common.configmapname.appmgr" . }}-bin