Jack Lucas | eea60d5 | 2018-08-23 21:31:42 +0000 | [diff] [blame] | 1 | #============LICENSE_START========================================================
|
| 2 | # ================================================================================
|
Jack Lucas | 332b5e7 | 2019-02-06 16:03:13 -0500 | [diff] [blame] | 3 | # Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved.
|
Jack Lucas | eea60d5 | 2018-08-23 21:31:42 +0000 | [diff] [blame] | 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 "+" "_" }}
|
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 27 | release: {{ include "common.release" . }}
|
Jack Lucas | eea60d5 | 2018-08-23 21:31:42 +0000 | [diff] [blame] | 28 | heritage: {{ .Release.Service }}
|
| 29 | spec:
|
| 30 | replicas: 1
|
| 31 | template:
|
| 32 | metadata:
|
| 33 | labels:
|
| 34 | app: {{ include "common.name" . }}
|
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 35 | release: {{ include "common.release" . }}
|
Jack Lucas | eea60d5 | 2018-08-23 21:31:42 +0000 | [diff] [blame] | 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 | 332b5e7 | 2019-02-06 16:03:13 -0500 | [diff] [blame] | 54 | - --container-name
|
| 55 | - dcae-db
|
Jack Lucas | c686131 | 2020-03-03 15:57:59 -0500 | [diff] [blame^] | 56 | - --container-name
|
| 57 | - dcae-inventory-api
|
Jack Lucas | eea60d5 | 2018-08-23 21:31:42 +0000 | [diff] [blame] | 58 | - "-t"
|
| 59 | - "15"
|
Jack Lucas | c686131 | 2020-03-03 15:57:59 -0500 | [diff] [blame^] | 60 |
|
Jack Lucas | eea60d5 | 2018-08-23 21:31:42 +0000 | [diff] [blame] | 61 | env:
|
| 62 | - name: NAMESPACE
|
| 63 | valueFrom:
|
| 64 | fieldRef:
|
| 65 | apiVersion: v1
|
| 66 | fieldPath: metadata.namespace
|
Vijay Venkatesh Kumar | a4535c9 | 2019-08-02 01:45:23 +0000 | [diff] [blame] | 67 | - name: init-tls
|
| 68 | env:
|
| 69 | - name: POD_IP
|
| 70 | valueFrom:
|
| 71 | fieldRef:
|
| 72 | apiVersion: v1
|
| 73 | fieldPath: status.podIP
|
Jack Lucas | c70bc7e | 2019-09-23 09:02:31 -0400 | [diff] [blame] | 74 | - name: aaf_locator_fqdn
|
| 75 | value: dcae
|
Vijay Venkatesh Kumar | a4535c9 | 2019-08-02 01:45:23 +0000 | [diff] [blame] | 76 | image: {{ .Values.global.tlsRepository }}/{{ .Values.global.tlsImage }}
|
| 77 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
|
| 78 | resources: {}
|
| 79 | volumeMounts:
|
Jack Lucas | c70bc7e | 2019-09-23 09:02:31 -0400 | [diff] [blame] | 80 | - mountPath: /opt/app/osaaf
|
Vijay Venkatesh Kumar | a4535c9 | 2019-08-02 01:45:23 +0000 | [diff] [blame] | 81 | name: tls-info
|
Jack Lucas | eea60d5 | 2018-08-23 21:31:42 +0000 | [diff] [blame] | 82 | containers:
|
| 83 | - name: {{ include "common.name" . }}
|
| 84 | image: "{{ include "common.repository" . }}/{{ .Values.image }}"
|
| 85 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
|
vaibhav_16dec | db582fa | 2018-09-20 12:32:47 +0000 | [diff] [blame] | 86 | resources:
|
| 87 | {{ include "common.resources" . | indent 12 }}
|
Jack Lucas | eea60d5 | 2018-08-23 21:31:42 +0000 | [diff] [blame] | 88 | volumeMounts:
|
| 89 | - mountPath: /inputs
|
| 90 | name: {{ include "common.fullname" . }}-dcae-inputs
|
| 91 | - mountPath: /dcae-configs
|
| 92 | name: {{ include "common.fullname" . }}-dcae-config
|
| 93 | - mountPath: /etc/localtime
|
| 94 | name: localtime
|
| 95 | readOnly: true
|
Vijay Venkatesh Kumar | a4535c9 | 2019-08-02 01:45:23 +0000 | [diff] [blame] | 96 | - mountPath: /certs
|
| 97 | name: tls-info
|
| 98 | readOnly: true
|
Jack Lucas | eea60d5 | 2018-08-23 21:31:42 +0000 | [diff] [blame] | 99 | env:
|
| 100 | - name: CMADDR
|
Vijay Venkatesh Kumar | a4535c9 | 2019-08-02 01:45:23 +0000 | [diff] [blame] | 101 | value: {{ .Values.config.address.cm.host }}
|
Jack Lucas | eea60d5 | 2018-08-23 21:31:42 +0000 | [diff] [blame] | 102 | - name: CMPASS
|
| 103 | valueFrom:
|
| 104 | secretKeyRef:
|
| 105 | name: {{ include "common.name" . }}-cmpass
|
| 106 | key: password
|
Vijay Venkatesh Kumar | a4535c9 | 2019-08-02 01:45:23 +0000 | [diff] [blame] | 107 | - name: CMPROTO
|
| 108 | value: {{ .Values.config.address.cm.proto }}
|
| 109 | - name: CMPORT
|
| 110 | value: !!string {{ .Values.config.address.cm.port }}
|
Jack Lucas | eea60d5 | 2018-08-23 21:31:42 +0000 | [diff] [blame] | 111 | - name: CONSUL
|
| 112 | value: {{ .Values.config.address.consul.host }}:{{ .Values.config.address.consul.port }}
|
| 113 | - name: DCAE_NAMESPACE
|
| 114 | value: {{ .Values.dcae_ns | default "" }}
|
| 115 | - name: ONAP_NAMESPACE
|
| 116 | value: {{ include "common.namespace" . }}
|
| 117 | volumes:
|
| 118 | - name: {{ include "common.fullname" . }}-dcae-inputs
|
| 119 | configMap:
|
| 120 | name: {{ include "common.fullname" . }}-dcae-inputs
|
| 121 | - name: {{ include "common.fullname" . }}-dcae-config
|
| 122 | configMap:
|
| 123 | name: {{ include "common.fullname" . }}-dcae-config
|
| 124 | - name: localtime
|
| 125 | hostPath:
|
| 126 | path: /etc/localtime
|
Vijay Venkatesh Kumar | a4535c9 | 2019-08-02 01:45:23 +0000 | [diff] [blame] | 127 | - name: tls-info
|
| 128 | emptyDir: {}
|
Jack Lucas | eea60d5 | 2018-08-23 21:31:42 +0000 | [diff] [blame] | 129 | imagePullSecrets:
|
vaibhav_16dec | db582fa | 2018-09-20 12:32:47 +0000 | [diff] [blame] | 130 | - name: "{{ include "common.namespace" . }}-docker-registry-key"
|