blob: f736a174db919e1cf68b66e7261106c7866f08ee [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 }}
Sylvain Desbureaux8c9416b2021-05-05 11:12:48 +020043 successThreshold: {{ .Values.liveness.successThreshold }}
44 failureThreshold: {{ .Values.liveness.failureThreshold }}
45 startupProbe:
46 httpGet:
47 path: {{ .Values.startup.path }}
48 port: {{ .Values.startup.port }}
49 initialDelaySeconds: {{ .Values.startup.initialDelaySeconds }}
50 periodSeconds: {{ .Values.startup.periodSeconds }}
51 successThreshold: {{ .Values.startup.successThreshold }}
52 failureThreshold: {{ .Values.startup.failureThreshold }}
Remigiusz Janeczekdccdd2b2021-03-24 12:31:00 +010053 imagePullSecrets:
54 - name: "{{ include "common.namespace" . }}-docker-registry-key"