Piotr Marcinkiewicz | 598f2d8 | 2021-06-01 12:36:13 +0200 | [diff] [blame] | 1 | {{ if .Values.global.cmpv2Enabled }} |
Jan Malkiewicz | 741fb0b | 2020-11-18 11:31:06 +0100 | [diff] [blame] | 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: |
andreas-geissler | 5389da8 | 2021-07-19 17:46:31 +0200 | [diff] [blame] | 36 | imagePullSecrets: |
| 37 | - name: "{{ include "common.namespace" . }}-docker-registry-key" |
Jan Malkiewicz | c681111 | 2020-12-10 10:34:00 +0100 | [diff] [blame] | 38 | initContainers: |
| 39 | {{ include "common.readinessCheck.waitFor" . | indent 6 | trim }} |
Jan Malkiewicz | 741fb0b | 2020-11-18 11:31:06 +0100 | [diff] [blame] | 40 | containers: |
| 41 | - name: {{ .Values.deploymentProxy.name }} |
| 42 | image: {{ .Values.deploymentProxy.image }} |
| 43 | imagePullPolicy: {{ .Values.deploymentProxy.pullPolicy }} |
| 44 | args: |
| 45 | - --secure-listen-address=0.0.0.0:8443 |
| 46 | - --upstream=http://127.0.0.1:8080/ |
| 47 | - --logtostderr=true |
| 48 | - --v=10 |
| 49 | ports: |
| 50 | - containerPort: 8443 |
| 51 | name: https |
| 52 | resources: |
| 53 | limits: |
| 54 | cpu: {{ .Values.deploymentProxy.resources.limits.cpu }} |
| 55 | memory: {{ .Values.deploymentProxy.resources.limits.memory }} |
| 56 | requests: |
| 57 | cpu: {{ .Values.deploymentProxy.resources.requests.cpu }} |
| 58 | memory: {{ .Values.deploymentProxy.resources.requests.memory }} |
| 59 | - name: provider |
| 60 | image: {{ .Values.global.repository }}{{if .Values.global.repository }}/{{ end }}{{ .Values.deployment.image }} |
| 61 | imagePullPolicy: {{ .Values.deployment.pullPolicy }} |
| 62 | command: |
| 63 | - /oom-certservice-cmpv2issuer |
| 64 | args: |
| 65 | - --metrics-addr=127.0.0.1:8080 |
| 66 | - --log-level={{ .Values.deployment.logLevel }} |
| 67 | resources: |
| 68 | limits: |
| 69 | cpu: {{ .Values.deployment.resources.limits.cpu }} |
| 70 | memory: {{ .Values.deployment.resources.limits.memory }} |
| 71 | requests: |
| 72 | cpu: {{ .Values.deployment.resources.requests.cpu }} |
| 73 | memory: {{ .Values.deployment.resources.requests.memory }} |
| 74 | terminationGracePeriodSeconds: 10 |
| 75 | {{ end }} |