Merge "[DOC] Update example override files in quick start guide documentation"
[oom.git] / kubernetes / platform / components / cmpv2-cert-provider / templates / deployment.yaml
1 {{ if .Values.global.CMPv2CertManagerIntegration }}
2
3 # ============LICENSE_START=======================================================
4 # Copyright (c) 2020 Nokia
5 # ================================================================================
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
19 apiVersion: apps/v1
20 kind: Deployment
21 metadata:
22   labels:
23     control-plane: controller-manager
24   name: {{ include "common.fullname" . }}
25   namespace: {{ include "common.namespace" . }}
26 spec:
27   replicas: 1
28   selector:
29     matchLabels:
30       control-plane: controller-manager
31   template:
32     metadata:
33       labels:
34         control-plane: controller-manager
35     spec:
36       initContainers:
37       {{ include "common.readinessCheck.waitFor" . | indent 6 | trim }}
38       containers:
39       - name: {{ .Values.deploymentProxy.name }}
40         image: {{ .Values.deploymentProxy.image }}
41         imagePullPolicy: {{ .Values.deploymentProxy.pullPolicy }}
42         args:
43         - --secure-listen-address=0.0.0.0:8443
44         - --upstream=http://127.0.0.1:8080/
45         - --logtostderr=true
46         - --v=10
47         ports:
48         - containerPort: 8443
49           name: https
50         resources:
51           limits:
52             cpu: {{ .Values.deploymentProxy.resources.limits.cpu }}
53             memory: {{ .Values.deploymentProxy.resources.limits.memory }}
54           requests:
55             cpu: {{ .Values.deploymentProxy.resources.requests.cpu }}
56             memory: {{ .Values.deploymentProxy.resources.requests.memory }}
57       - name: provider
58         image: {{ .Values.global.repository }}{{if .Values.global.repository }}/{{ end }}{{ .Values.deployment.image }}
59         imagePullPolicy: {{ .Values.deployment.pullPolicy }}
60         command:
61         - /oom-certservice-cmpv2issuer
62         args:
63         - --metrics-addr=127.0.0.1:8080
64         - --log-level={{ .Values.deployment.logLevel }}
65         resources:
66           limits:
67             cpu: {{ .Values.deployment.resources.limits.cpu }}
68             memory: {{ .Values.deployment.resources.limits.memory }}
69           requests:
70             cpu: {{ .Values.deployment.resources.requests.cpu }}
71             memory: {{ .Values.deployment.resources.requests.memory }}
72       terminationGracePeriodSeconds: 10
73 {{ end }}