blob: a26307d64b0e49cae25c4e9e9fcb4900e83948d8 [file] [log] [blame]
Jack Lucaseea60d52018-08-23 21:31:42 +00001#============LICENSE_START========================================================
2# ================================================================================
3# Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.
4# 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 "+" "_" }}
27 release: {{ .Release.Name }}
28 heritage: {{ .Release.Service }}
29spec:
30 replicas: 1
31 template:
32 metadata:
33 labels:
34 app: {{ include "common.name" . }}
35 release: {{ .Release.Name }}
36 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
52 - "-t"
53 - "15"
54 env:
55 - name: NAMESPACE
56 valueFrom:
57 fieldRef:
58 apiVersion: v1
59 fieldPath: metadata.namespace
60 containers:
61 - name: {{ include "common.name" . }}
62 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
63 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
vaibhav_16decdb582fa2018-09-20 12:32:47 +000064 resources:
65{{ include "common.resources" . | indent 12 }}
Jack Lucaseea60d52018-08-23 21:31:42 +000066 volumeMounts:
67 - mountPath: /inputs
68 name: {{ include "common.fullname" . }}-dcae-inputs
69 - mountPath: /dcae-configs
70 name: {{ include "common.fullname" . }}-dcae-config
71 - mountPath: /etc/localtime
72 name: localtime
73 readOnly: true
74 env:
75 - name: CMADDR
76 value: {{ .Values.config.address.cm }}
77 - name: CMPASS
78 valueFrom:
79 secretKeyRef:
80 name: {{ include "common.name" . }}-cmpass
81 key: password
82 - name: CONSUL
83 value: {{ .Values.config.address.consul.host }}:{{ .Values.config.address.consul.port }}
84 - name: DCAE_NAMESPACE
85 value: {{ .Values.dcae_ns | default "" }}
86 - name: ONAP_NAMESPACE
87 value: {{ include "common.namespace" . }}
88 volumes:
89 - name: {{ include "common.fullname" . }}-dcae-inputs
90 configMap:
91 name: {{ include "common.fullname" . }}-dcae-inputs
92 - name: {{ include "common.fullname" . }}-dcae-config
93 configMap:
94 name: {{ include "common.fullname" . }}-dcae-config
95 - name: localtime
96 hostPath:
97 path: /etc/localtime
98 imagePullSecrets:
vaibhav_16decdb582fa2018-09-20 12:32:47 +000099 - name: "{{ include "common.namespace" . }}-docker-registry-key"