blob: 08228ad99c56d90eb5fe462502ed5c5d6cc6a7ef [file] [log] [blame]
Remigiusz Janeczekdccdd2b2021-03-24 12:31:00 +01001{{/*
2# ===========LICENSE_START========================================================
3# Copyright (c) 2021 Nokia. All rights reserved.
4# ================================================================================
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
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
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# ============LICENSE_END=========================================================
17*/}}
18
19apiVersion: apps/v1
20kind: Deployment
21metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
22spec:
23 selector: {{- include "common.selectors" . | nindent 4 }}
24 replicas: 1
25 template:
26 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
27 spec:
28 containers:
29 - name: {{ include "common.name" . }}
30 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
31 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
32 resources: {{ include "common.resources" . | nindent 12 }}
33 ports: {{ include "common.containerPorts" . | nindent 12 }}
34 env:
35 - name: LOG_LEVEL
36 value: {{ .Values.config.loggingLevel }}
37 livenessProbe:
38 httpGet:
39 path: {{ .Values.liveness.path }}
40 port: {{ .Values.liveness.port }}
41 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
42 periodSeconds: {{ .Values.liveness.periodSeconds }}
43 imagePullSecrets:
44 - name: "{{ include "common.namespace" . }}-docker-registry-key"