2 # Copyright 2019 Intel Corporation, Inc
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.
17 apiVersion: extensions/v1beta1
20 name: {{ include "promql_query_app.fullname" . }}
22 app: {{ include "promql_query_app.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ .Release.Name }}
25 heritage: {{ .Release.Service | quote }}
30 app: {{ include "promql_query_app.name" . }}
31 release: {{ .Release.Name }}
32 modelName: {{ .Values.modelName }}
36 app: {{ include "promql_query_app.name" . }}
37 release: {{ .Release.Name }}
38 modelName: {{ .Values.modelName }}
40 serviceAccountName: {{ template "promql_query_app.serviceAccountName" . }}
42 - name: promql_query_app
43 image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
44 imagePullPolicy: {{ .Values.image.pullPolicy }}
49 name: {{ if .Values.prometheus.configMapName }}{{ .Values.prometheus.configMapName }}{{ else }}{{ template "promql_query_app.fullname" . }}{{ end }}
50 key: prometheus_endpoint
51 - name: AWS_ACCESS_KEY_ID
54 name: {{ if .Values.minio.existingSecret }}{{ .Values.minio.existingSecret }}{{ else }}{{ template "promql_query_app.fullname" . }}{{ end }}
56 - name: AWS_SECRET_ACCESS_KEY
59 name: {{ if .Values.minio.existingSecret }}{{ .Values.minio.existingSecret }}{{ else }}{{ template "promql_query_app.fullname" . }}{{ end }}
61 {{- range $key, $val := .Values.minio.environment }}
63 value: {{ $val | quote }}
66 {{ toYaml .Values.resources | indent 12 }}
73 {{- with .Values.nodeSelector }}
75 {{- toYaml . | nindent 8 }}
77 {{- with .Values.affinity }}
79 {{- toYaml . | nindent 8 }}
81 {{- with .Values.tolerations }}
83 {{- toYaml . | nindent 8 }}