1 # Copyright © 2018 AT&T Intellectual Property. All rights reserved.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 apiVersion: extensions/v1beta1
18 name: {{ include "common.name" . }}-{{ .Values.buscontroller.service }}
19 namespace: {{ .Values.global.nsPrefix }}
21 app: {{ include "common.name" . }}-{{ .Values.buscontroller.service }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
26 replicas: {{ .Values.buscontroller.replicaCount }}
30 app: {{ include "common.name" . }}-{{ .Values.buscontroller.service }}
31 release: {{ .Release.Name }}
34 #Example init container for dependency checking
45 # fieldPath: metadata.namespace
46 # image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
47 # imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
48 # name: {{ include "common.name" . }}-readiness
50 - name: {{ include "common.name" . }}-{{ .Values.buscontroller.service }}
51 image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image.buscontrollerImage }}:{{ .Values.image.buscontrollerVersion }}"
52 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
54 - containerPort: {{ .Values.buscontroller.httpExternalPort }}
55 # wait till we get SSL certs before enabling this port
56 # - containerPort: {{ .Values.buscontroller.httpsPort }}
57 # disable liveness probe when breakpoints set in debugger
58 # so K8s doesn't restart unresponsive container
59 {{- if eq .Values.liveness.enabled true }}
62 port: {{ .Values.buscontroller.httpExternalPort }}
64 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
65 periodSeconds: {{ .Values.liveness.periodSeconds }}
69 port: {{ .Values.buscontroller.httpExternalPort }}
71 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
72 periodSeconds: {{ .Values.readiness.periodSeconds }}
74 #Example environment variable passed to container
76 # value: {{ .Values.global.debugEnabled | default .Values.debugEnabled | quote }}
78 - mountPath: /etc/localtime
81 - mountPath: /opt/app/config
82 name: {{ include "common.name" . }}-config
84 {{ toYaml .Values.resources | indent 12 }}
85 {{- if .Values.nodeSelector }}
87 {{ toYaml .Values.nodeSelector | indent 10 }}
89 {{- if .Values.affinity }}
91 {{ toYaml .Values.affinity | indent 10 }}
98 - name: {{ include "common.name" . }}-config
100 name: {{ include "common.fullname" . }}-configmap
102 - key: buscontroller.env
104 #Example config file mount into container
105 # - name: {{ include "common.fullname" . }}-config
107 # name: {{ include "common.fullname" . }}-configmap
109 # - key: application.properties
110 # path: application.properties
112 - name: "{{ .Values.global.nsPrefix }}-docker-registry-key"