blob: 5a52e10d6e74c70e08dac76db0bec537be6dd8d9 [file] [log] [blame]
Jack Lucas7723ffe2020-02-13 17:19:01 -05001#============LICENSE_START========================================================
2# ================================================================================
3# Copyright (c) 2019-2020 AT&T Intellectual Property. 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
18apiVersion: apps/v1
19kind: Deployment
20metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
21spec:
22 replicas: 1
23 selector: {{- include "common.selectors" . | nindent 4 }}
24 template:
25 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
26 spec:
27 containers:
28 - name: {{ include "common.name" . }}
29 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
30 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
31 ports: {{ include "common.containerPorts" . | nindent 12 }}
32 {{- if eq .Values.liveness.enabled true }}
33 livenessProbe:
34 tcpSocket:
35 port: {{ .Values.liveness.port }}
36 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
37 periodSeconds: {{ .Values.liveness.periodSeconds }}
38 {{ end }}
39 readinessProbe:
40 tcpSocket:
41 port: {{ .Values.readiness.port }}
42 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
43 periodSeconds: {{ .Values.readiness.periodSeconds }}
44 resources: {{ include "common.resources" . | nindent 12 }}
45 env:
46 - name: DASHBOARD_URL
47 value: {{ .Values.config.dashboardURL }}
48 - name: DASHBOARD_USERNAME
Krzysztof Opasiak1e3ae552020-03-24 03:27:13 +010049 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "dashsecret" "key" "login") | indent 14 }}
Jack Lucas7723ffe2020-02-13 17:19:01 -050050 - name: DASHBOARD_PASSWORD
Krzysztof Opasiak1e3ae552020-03-24 03:27:13 +010051 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "dashsecret" "key" "password") | indent 14 }}
Jack Lucas00efe372020-03-11 13:48:20 -040052 - name: ONAP_TOPICURL
Jack Lucas7723ffe2020-02-13 17:19:01 -050053 value: {{ .Values.config.mrTopicURL }}
Jack Lucas00efe372020-03-11 13:48:20 -040054 - name: ONAP_IMPORT_CLOUDIFYPLUGIN
55 value: {{ .Values.config.importCloudify }}
56 - name: ONAP_IMPORT_K8SPLUGIN
57 value: {{ .Values.config.importK8S }}
58 - name: ONAP_IMPORT_POLICYPLUGIN
59 value: {{ .Values.config.importPolicy }}
60 - name: ONAP_INPORT_POSTGRESPLUGIN
61 value: {{ .Values.config.importPostgres }}
62 - name: ONAP_IMPORT_CLAMPPLUGIN
63 value: {{ .Values.config.importClamp }}
64 - name: ONAP_IMPORT_DMAAPPLUGIN
65 value: {{ .Values.config.importDMaaP }}
Jack Lucas7723ffe2020-02-13 17:19:01 -050066 imagePullSecrets:
67 - name: "{{ include "common.namespace" . }}-docker-registry-key"