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
|
Jack Lucas | 6fae763 | 2019-01-25 11:46:00 -0500 | [diff] [blame] | 52 | - --container-name
|
| 53 | - dcae-config-binding-service
|
Jack Lucas | eea60d5 | 2018-08-23 21:31:42 +0000 | [diff] [blame] | 54 | - "-t"
|
| 55 | - "15"
|
| 56 | env:
|
| 57 | - name: NAMESPACE
|
| 58 | valueFrom:
|
| 59 | fieldRef:
|
| 60 | apiVersion: v1
|
| 61 | fieldPath: metadata.namespace
|
| 62 | containers:
|
| 63 | - name: {{ include "common.name" . }}
|
| 64 | image: "{{ include "common.repository" . }}/{{ .Values.image }}"
|
| 65 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
|
vaibhav_16dec | db582fa | 2018-09-20 12:32:47 +0000 | [diff] [blame] | 66 | resources:
|
| 67 | {{ include "common.resources" . | indent 12 }}
|
Jack Lucas | eea60d5 | 2018-08-23 21:31:42 +0000 | [diff] [blame] | 68 | volumeMounts:
|
| 69 | - mountPath: /inputs
|
| 70 | name: {{ include "common.fullname" . }}-dcae-inputs
|
| 71 | - mountPath: /dcae-configs
|
| 72 | name: {{ include "common.fullname" . }}-dcae-config
|
| 73 | - mountPath: /etc/localtime
|
| 74 | name: localtime
|
| 75 | readOnly: true
|
| 76 | env:
|
| 77 | - name: CMADDR
|
| 78 | value: {{ .Values.config.address.cm }}
|
| 79 | - name: CMPASS
|
| 80 | valueFrom:
|
| 81 | secretKeyRef:
|
| 82 | name: {{ include "common.name" . }}-cmpass
|
| 83 | key: password
|
| 84 | - name: CONSUL
|
| 85 | value: {{ .Values.config.address.consul.host }}:{{ .Values.config.address.consul.port }}
|
| 86 | - name: DCAE_NAMESPACE
|
| 87 | value: {{ .Values.dcae_ns | default "" }}
|
| 88 | - name: ONAP_NAMESPACE
|
| 89 | value: {{ include "common.namespace" . }}
|
| 90 | volumes:
|
| 91 | - name: {{ include "common.fullname" . }}-dcae-inputs
|
| 92 | configMap:
|
| 93 | name: {{ include "common.fullname" . }}-dcae-inputs
|
| 94 | - name: {{ include "common.fullname" . }}-dcae-config
|
| 95 | configMap:
|
| 96 | name: {{ include "common.fullname" . }}-dcae-config
|
| 97 | - name: localtime
|
| 98 | hostPath:
|
| 99 | path: /etc/localtime
|
| 100 | imagePullSecrets:
|
vaibhav_16dec | db582fa | 2018-09-20 12:32:47 +0000 | [diff] [blame] | 101 | - name: "{{ include "common.namespace" . }}-docker-registry-key"
|