Jack Lucas | eea60d5 | 2018-08-23 21:31:42 +0000 | [diff] [blame] | 1 | #============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 |
|
| 19 | apiVersion: extensions/v1beta1
|
| 20 | kind: Deployment
|
| 21 | metadata:
|
| 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 }}
|
| 29 | spec:
|
| 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 }}
|
| 64 | volumeMounts:
|
| 65 | - mountPath: /inputs
|
| 66 | name: {{ include "common.fullname" . }}-dcae-inputs
|
| 67 | - mountPath: /dcae-configs
|
| 68 | name: {{ include "common.fullname" . }}-dcae-config
|
| 69 | - mountPath: /etc/localtime
|
| 70 | name: localtime
|
| 71 | readOnly: true
|
| 72 | env:
|
| 73 | - name: CMADDR
|
| 74 | value: {{ .Values.config.address.cm }}
|
| 75 | - name: CMPASS
|
| 76 | valueFrom:
|
| 77 | secretKeyRef:
|
| 78 | name: {{ include "common.name" . }}-cmpass
|
| 79 | key: password
|
| 80 | - name: CONSUL
|
| 81 | value: {{ .Values.config.address.consul.host }}:{{ .Values.config.address.consul.port }}
|
| 82 | - name: DCAE_NAMESPACE
|
| 83 | value: {{ .Values.dcae_ns | default "" }}
|
| 84 | - name: ONAP_NAMESPACE
|
| 85 | value: {{ include "common.namespace" . }}
|
| 86 | volumes:
|
| 87 | - name: {{ include "common.fullname" . }}-dcae-inputs
|
| 88 | configMap:
|
| 89 | name: {{ include "common.fullname" . }}-dcae-inputs
|
| 90 | - name: {{ include "common.fullname" . }}-dcae-config
|
| 91 | configMap:
|
| 92 | name: {{ include "common.fullname" . }}-dcae-config
|
| 93 | - name: localtime
|
| 94 | hostPath:
|
| 95 | path: /etc/localtime
|
| 96 | imagePullSecrets:
|
| 97 | - name: "{{ include "common.namespace" . }}-docker-registry-key" |