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 ################################################################################'
19 name: {{ include "ricxapp.fullname" . }}
21 app: {{ include "ricxapp.namespace" . }}-{{ include "ricxapp.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
26 replicas: {{ .Values.replicaCount }}
29 app: {{ include "ricxapp.namespace" . }}-{{ include "ricxapp.name" . }}
30 release: {{ .Release.Name }}
34 app: {{ include "ricxapp.namespace" . }}-{{ include "ricxapp.name" . }}
35 release: {{ .Release.Name }}
37 hostname: {{ include "ricxapp.name" . }}
39 {{- range .Values.containers }}
40 - name: {{ .image.registry | replace "." "-" | replace ":" "-" | replace "/" "-" | trunc 63 | trimSuffix "-" }}
45 name: {{ include "ricxapp.configmapname" . }}-appconfig
47 {{- range .Values.containers }}
49 image: "{{ .image.registry }}/{{ .image.name }}:{{ .image.tag }}"
51 command: [{{ .command }}]
53 imagePullPolicy: {{ $.Values.image_pull_policy }}
57 - name: http-{{ .name }}
58 containerPort: {{ .ports.http }}
61 {{- if .ports.rmr_data }}
62 - name: rmrdata-{{ .name }}
63 containerPort: {{ .ports.rmr_data }}
66 {{- if .ports.rmr_route }}
67 - name: rmrroute-{{ .name }}
68 containerPort: {{ .ports.rmr_route }}
75 mountPath: {{ .Values.appconfig.path }}
78 name: {{ include "ricxapp.configmapname" . }}-appenv