blob: d41fef91808ad7da154c9b724f3e960314b3d698 [file] [log] [blame]
Jack Lucaseea60d52018-08-23 21:31:42 +00001#============LICENSE_START========================================================
2# ================================================================================
Jack Lucas332b5e72019-02-06 16:03:13 -05003# Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved.
Jack Lucaseea60d52018-08-23 21:31:42 +00004# Modifications Copyright © 2018 Amdocs, Bell Canada
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
19apiVersion: extensions/v1beta1
20kind: Deployment
21metadata:
22 name: {{ include "common.fullname" . }}
23 namespace: {{ include "common.namespace" . }}
24 labels:
25 app: {{ include "common.name" . }}
26 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010027 release: {{ include "common.release" . }}
Jack Lucaseea60d52018-08-23 21:31:42 +000028 heritage: {{ .Release.Service }}
29spec:
30 replicas: 1
31 template:
32 metadata:
33 labels:
34 app: {{ include "common.name" . }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010035 release: {{ include "common.release" . }}
Jack Lucaseea60d52018-08-23 21:31:42 +000036 spec:
37 initContainers:
38 - name: {{ include "common.name" . }}-readiness
39 image: {{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}
40 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
41 command:
42 - /root/ready.py
43 args:
44 - --container-name
45 - dcae-cloudify-manager
46 - --container-name
47 - consul-server
48 - --container-name
49 - msb-discovery
50 - --container-name
51 - kube2msb
Jack Lucas6fae7632019-01-25 11:46:00 -050052 - --container-name
53 - dcae-config-binding-service
Jack Lucas332b5e72019-02-06 16:03:13 -050054 - --container-name
55 - dcae-db
Jack Lucaseea60d52018-08-23 21:31:42 +000056 - "-t"
57 - "15"
58 env:
59 - name: NAMESPACE
60 valueFrom:
61 fieldRef:
62 apiVersion: v1
63 fieldPath: metadata.namespace
Vijay Venkatesh Kumara4535c92019-08-02 01:45:23 +000064 - name: init-tls
65 env:
66 - name: POD_IP
67 valueFrom:
68 fieldRef:
69 apiVersion: v1
70 fieldPath: status.podIP
71 image: {{ .Values.global.tlsRepository }}/{{ .Values.global.tlsImage }}
72 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
73 resources: {}
74 volumeMounts:
75 - mountPath: /opt/tls/shared
76 name: tls-info
Jack Lucaseea60d52018-08-23 21:31:42 +000077 containers:
78 - name: {{ include "common.name" . }}
79 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
80 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
vaibhav_16decdb582fa2018-09-20 12:32:47 +000081 resources:
82{{ include "common.resources" . | indent 12 }}
Jack Lucaseea60d52018-08-23 21:31:42 +000083 volumeMounts:
84 - mountPath: /inputs
85 name: {{ include "common.fullname" . }}-dcae-inputs
86 - mountPath: /dcae-configs
87 name: {{ include "common.fullname" . }}-dcae-config
88 - mountPath: /etc/localtime
89 name: localtime
90 readOnly: true
Vijay Venkatesh Kumara4535c92019-08-02 01:45:23 +000091 - mountPath: /certs
92 name: tls-info
93 readOnly: true
Jack Lucaseea60d52018-08-23 21:31:42 +000094 env:
95 - name: CMADDR
Vijay Venkatesh Kumara4535c92019-08-02 01:45:23 +000096 value: {{ .Values.config.address.cm.host }}
Jack Lucaseea60d52018-08-23 21:31:42 +000097 - name: CMPASS
98 valueFrom:
99 secretKeyRef:
100 name: {{ include "common.name" . }}-cmpass
101 key: password
Vijay Venkatesh Kumara4535c92019-08-02 01:45:23 +0000102 - name: CMPROTO
103 value: {{ .Values.config.address.cm.proto }}
104 - name: CMPORT
105 value: !!string {{ .Values.config.address.cm.port }}
Jack Lucaseea60d52018-08-23 21:31:42 +0000106 - name: CONSUL
107 value: {{ .Values.config.address.consul.host }}:{{ .Values.config.address.consul.port }}
108 - name: DCAE_NAMESPACE
109 value: {{ .Values.dcae_ns | default "" }}
110 - name: ONAP_NAMESPACE
111 value: {{ include "common.namespace" . }}
112 volumes:
113 - name: {{ include "common.fullname" . }}-dcae-inputs
114 configMap:
115 name: {{ include "common.fullname" . }}-dcae-inputs
116 - name: {{ include "common.fullname" . }}-dcae-config
117 configMap:
118 name: {{ include "common.fullname" . }}-dcae-config
119 - name: localtime
120 hostPath:
121 path: /etc/localtime
Vijay Venkatesh Kumara4535c92019-08-02 01:45:23 +0000122 - name: tls-info
123 emptyDir: {}
Jack Lucaseea60d52018-08-23 21:31:42 +0000124 imagePullSecrets:
vaibhav_16decdb582fa2018-09-20 12:32:47 +0000125 - name: "{{ include "common.namespace" . }}-docker-registry-key"