Jakub Latusek | df233a8 | 2020-10-21 13:36:29 +0200 | [diff] [blame] | 1 | {{/* |
Jack Lucas | b92fe60 | 2018-04-20 18:51:34 +0000 | [diff] [blame] | 2 | #============LICENSE_START======================================================== |
| 3 | # ================================================================================ |
Jack Lucas | 8c3463e | 2020-06-12 18:36:55 -0400 | [diff] [blame] | 4 | # Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved. |
Durgpal | 7ad4069 | 2018-08-03 07:28:36 +0000 | [diff] [blame] | 5 | # Modifications Copyright © 2018 Amdocs, Bell Canada |
Jack Lucas | b92fe60 | 2018-04-20 18:51:34 +0000 | [diff] [blame] | 6 | # ================================================================================ |
| 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | # you may not use this file except in compliance with the License. |
| 9 | # You may obtain a copy of the License at |
| 10 | # |
| 11 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | # |
| 13 | # Unless required by applicable law or agreed to in writing, software |
| 14 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | # See the License for the specific language governing permissions and |
| 17 | # limitations under the License. |
| 18 | # ============LICENSE_END========================================================= |
Jakub Latusek | df233a8 | 2020-10-21 13:36:29 +0200 | [diff] [blame] | 19 | */}} |
Jack Lucas | b92fe60 | 2018-04-20 18:51:34 +0000 | [diff] [blame] | 20 | |
Krzysztof Kuzmicki | aef7007 | 2020-07-24 14:47:43 +0200 | [diff] [blame] | 21 | apiVersion: apps/v1 |
Jack Lucas | b92fe60 | 2018-04-20 18:51:34 +0000 | [diff] [blame] | 22 | kind: Deployment |
| 23 | metadata: |
| 24 | name: {{ include "common.fullname" . }} |
| 25 | namespace: {{ include "common.namespace" . }} |
| 26 | labels: |
| 27 | app: {{ include "common.name" . }} |
| 28 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 29 | release: {{ include "common.release" . }} |
Jack Lucas | b92fe60 | 2018-04-20 18:51:34 +0000 | [diff] [blame] | 30 | heritage: {{ .Release.Service }} |
| 31 | spec: |
| 32 | replicas: 1 |
Krzysztof Kuzmicki | aef7007 | 2020-07-24 14:47:43 +0200 | [diff] [blame] | 33 | selector: |
| 34 | matchLabels: |
| 35 | app: {{ include "common.name" . }} |
Jack Lucas | b92fe60 | 2018-04-20 18:51:34 +0000 | [diff] [blame] | 36 | template: |
| 37 | metadata: |
| 38 | labels: |
| 39 | app: {{ include "common.name" . }} |
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 40 | release: {{ include "common.release" . }} |
Jack Lucas | b92fe60 | 2018-04-20 18:51:34 +0000 | [diff] [blame] | 41 | spec: |
| 42 | containers: |
| 43 | - name: {{ include "common.name" . }} |
Sylvain Desbureaux | cad63e5 | 2020-11-21 22:17:40 +0100 | [diff] [blame] | 44 | image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }} |
Jack Lucas | b92fe60 | 2018-04-20 18:51:34 +0000 | [diff] [blame] | 45 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
vaibhav_16dec | db582fa | 2018-09-20 12:32:47 +0000 | [diff] [blame] | 46 | resources: |
| 47 | {{ include "common.resources" . | indent 12 }} |
Jack Lucas | b92fe60 | 2018-04-20 18:51:34 +0000 | [diff] [blame] | 48 | ports: |
| 49 | - containerPort: {{ .Values.service.internalPort }} |
| 50 | # disable liveness probe when breakpoints set in debugger |
| 51 | # so K8s doesn't restart unresponsive container |
| 52 | {{- if eq .Values.liveness.enabled true }} |
| 53 | livenessProbe: |
| 54 | tcpSocket: |
| 55 | port: {{ .Values.service.internalPort }} |
| 56 | initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }} |
| 57 | periodSeconds: {{ .Values.liveness.periodSeconds }} |
| 58 | {{ end -}} |
| 59 | readinessProbe: |
| 60 | tcpSocket: |
| 61 | port: {{ .Values.service.internalPort }} |
| 62 | initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} |
| 63 | periodSeconds: {{ .Values.readiness.periodSeconds }} |
Jack Lucas | 8c3463e | 2020-06-12 18:36:55 -0400 | [diff] [blame] | 64 | volumeMounts: |
| 65 | - mountPath: /opt/app/expected-components.json |
| 66 | subPath: expected-components.json |
| 67 | name: {{ include "common.fullname" .}}-expected-components |
Jack Lucas | b92fe60 | 2018-04-20 18:51:34 +0000 | [diff] [blame] | 68 | env: |
| 69 | - name: DCAE_NAMESPACE |
| 70 | value: {{ .Values.dcae_ns }} |
| 71 | - name: ONAP_NAMESPACE |
| 72 | value: {{ include "common.namespace" . }} |
| 73 | - name: HELM_RELEASE |
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 74 | value: {{ include "common.release" . }} |
Jack Lucas | 8c3463e | 2020-06-12 18:36:55 -0400 | [diff] [blame] | 75 | - name: DEPLOY_LABEL |
| 76 | value: cfydeployment |
farida azmy | 3748180 | 2021-04-11 15:41:32 +0200 | [diff] [blame] | 77 | serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} |
Jack Lucas | 8c3463e | 2020-06-12 18:36:55 -0400 | [diff] [blame] | 78 | volumes: |
| 79 | - name: {{ include "common.fullname" . }}-expected-components |
| 80 | configMap: |
| 81 | name: {{ include "common.release" . }}-dcae-expected-components |
Jack Lucas | b92fe60 | 2018-04-20 18:51:34 +0000 | [diff] [blame] | 82 | imagePullSecrets: |
| 83 | - name: "{{ include "common.namespace" . }}-docker-registry-key" |