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: {{ .Release.Name }}-{{ include "common.name" . }}-buscontroller
19 name: {{ include "common.name" . }}-{{ .Values.buscontroller.service }}
20 namespace: {{ .Values.global.nsPrefix }}
22 app: {{ include "common.name" . }}-{{ .Values.buscontroller.service }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ .Release.Name }}
25 heritage: {{ .Release.Service }}
27 replicas: {{ .Values.buscontroller.replicaCount }}
31 app: {{ include "common.name" . }}-{{ .Values.buscontroller.service }}
32 release: {{ .Release.Name }}
35 #Example init container for dependency checking
46 # fieldPath: metadata.namespace
47 # image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
48 # imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
49 # name: {{ include "common.name" . }}-readiness
51 - name: {{ include "common.name" . }}-{{ .Values.buscontroller.service }}
52 image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image.buscontrollerImage }}:{{ .Values.image.buscontrollerVersion }}"
53 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
55 - containerPort: {{ .Values.buscontroller.httpExternalPort }}
56 # wait till we get SSL certs before enabling this port
57 # - containerPort: {{ .Values.buscontroller.httpsPort }}
58 # disable liveness probe when breakpoints set in debugger
59 # so K8s doesn't restart unresponsive container
60 {{- if eq .Values.liveness.enabled true }}
63 port: {{ .Values.buscontroller.httpExternalPort }}
65 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
66 periodSeconds: {{ .Values.liveness.periodSeconds }}
70 port: {{ .Values.buscontroller.httpExternalPort }}
72 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
73 periodSeconds: {{ .Values.readiness.periodSeconds }}
75 #Example environment variable passed to container
77 # value: {{ .Values.global.debugEnabled | default .Values.debugEnabled | quote }}
79 - mountPath: /etc/localtime
82 - mountPath: /opt/app/config
83 name: {{ include "common.name" . }}-config
85 {{ toYaml .Values.resources | indent 12 }}
86 {{- if .Values.nodeSelector }}
88 {{ toYaml .Values.nodeSelector | indent 10 }}
90 {{- if .Values.affinity }}
92 {{ toYaml .Values.affinity | indent 10 }}
99 - name: {{ include "common.name" . }}-config
101 name: {{ include "common.fullname" . }}-configmap
103 - key: buscontroller.env
105 #Example config file mount into container
106 # - name: {{ include "common.fullname" . }}-config
108 # name: {{ include "common.fullname" . }}-configmap
110 # - key: application.properties
111 # path: application.properties
113 - name: "{{ .Values.global.nsPrefix }}-docker-registry-key"