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 ################################################################################
21 name: {{ include "appmgr.fullname" . }}
22 namespace: {{ include "common.namespace" . }}
24 app: {{ include "common.namespace" . }}-{{ include "common.name" . }}
25 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
26 release: {{ .Release.Name }}
27 heritage: {{ .Release.Service }}
29 replicas: {{ .Values.replicaCount }}
32 app: {{ include "common.namespace" . }}-{{ include "common.name" . }}
33 release: {{ .Release.Name }}
34 #app.kubernetes.io/name: {{ include "appmgr.name" . }}
35 #app.kubernetes.io/instance: {{ .Release.Name }}
39 app: {{ include "common.namespace" . }}-{{ include "common.name" . }}
40 release: {{ .Release.Name }}
42 hostname: {{ include "common.namespace" . }}-{{ include "common.name" . }}
44 - name: {{ .Values.image.repositoryCred }}
46 # create a DNS name entry in container's /etc/hosts for resolving helm chart repo hostnaem
47 - ip: "${__RUNRICENV_DOCKER_IP__}"
49 - "${__RUNRICENV_DOCKER_HOST__}"
50 - ip: "${__RUNRICENV_HELMREPO_IP__}"
52 - "${__RUNRICENV_HELMREPO_HOST__}"
54 - name: {{ include "common.namespace" . }}-{{ include "common.name" . }}
55 image: "{{ .Values.image.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}"
56 imagePullPolicy: {{ .Values.image.pullPolicy }}
59 containerPort: {{ .Values.containerPort }}
63 mountPath: {{ .Values.appconfigpath }}
65 mountPath: {{ .Values.appsecretpath }}
67 mountPath: {{ .Values.appcertpath }}
70 name: {{ include "appmgr.fullname" . }}-appenv
76 # - ps -ef | grep {{ .Values.livenessprocessname }}| grep -v "grep"
77 #initialDelaySeconds: 120
85 {{- toYaml .Values.resources | nindent 12 }}
89 #allowPrivilegeEscalation: false
90 {{- with .Values.nodeSelector }}
92 {{- toYaml . | nindent 8 }}
94 {{- with .Values.affinity }}
96 {{- toYaml . | nindent 8 }}
98 {{- with .Values.tolerations }}
100 {{- toYaml . | nindent 8 }}
104 - name: config-volume
106 name: {{ include "appmgr.fullname" . }}-appconfig
107 - name: secret-volume
109 secretName: {{ .Values.appsecretobject }}
112 name: {{ .Values.appcertobject }}