blob: ce5e410abe14a437dfa2510ecc9b648481d6fde1 [file] [log] [blame]
Piotr Marcinkiewicz598f2d82021-06-01 12:36:13 +02001{{ if .Values.global.cmpv2Enabled }}
Jan Malkiewicz741fb0b2020-11-18 11:31:06 +01002
3# ============LICENSE_START=======================================================
Piotr Marcinkiewicz9d1ca2b2021-08-11 16:21:51 +02004# Copyright (c) 2020-2021 Nokia
Jan Malkiewicz741fb0b2020-11-18 11:31:06 +01005# ================================================================================
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17# ============LICENSE_END=========================================================
18
19apiVersion: apps/v1
20kind: Deployment
21metadata:
22 labels:
23 control-plane: controller-manager
24 name: {{ include "common.fullname" . }}
25 namespace: {{ include "common.namespace" . }}
26spec:
27 replicas: 1
28 selector:
29 matchLabels:
30 control-plane: controller-manager
31 template:
32 metadata:
33 labels:
34 control-plane: controller-manager
Radoslaw Chmielf3fbbe42022-06-02 19:17:12 +020035 {{- if (include "common.onServiceMesh" . | nindent 6 ) }}
36 annotations:
37 {{- if eq ( .Values.global.serviceMesh.engine ) "linkerd" }}
38 linkerd.io/inject: disabled
39 {{- end }}
40 {{- if eq ( .Values.global.serviceMesh.engine ) "istio" }}
41 traffic.sidecar.istio.io/excludeInboundPorts: "8080,8443"
42 traffic.sidecar.istio.io/includeInboundPorts: '*'
43 {{- end }}
44 {{- end }}
Jan Malkiewicz741fb0b2020-11-18 11:31:06 +010045 spec:
andreas-geissler5389da82021-07-19 17:46:31 +020046 imagePullSecrets:
47 - name: "{{ include "common.namespace" . }}-docker-registry-key"
Jan Malkiewiczc6811112020-12-10 10:34:00 +010048 initContainers:
49 {{ include "common.readinessCheck.waitFor" . | indent 6 | trim }}
Jan Malkiewicz741fb0b2020-11-18 11:31:06 +010050 containers:
Jan Malkiewicz741fb0b2020-11-18 11:31:06 +010051 - name: provider
52 image: {{ .Values.global.repository }}{{if .Values.global.repository }}/{{ end }}{{ .Values.deployment.image }}
53 imagePullPolicy: {{ .Values.deployment.pullPolicy }}
54 command:
55 - /oom-certservice-cmpv2issuer
56 args:
57 - --metrics-addr=127.0.0.1:8080
58 - --log-level={{ .Values.deployment.logLevel }}
59 resources:
60 limits:
61 cpu: {{ .Values.deployment.resources.limits.cpu }}
62 memory: {{ .Values.deployment.resources.limits.memory }}
63 requests:
64 cpu: {{ .Values.deployment.resources.requests.cpu }}
65 memory: {{ .Values.deployment.resources.requests.memory }}
66 terminationGracePeriodSeconds: 10
67{{ end }}