vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame^] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 15 | #{{ if not .Values.disableMulticloudFramework }} |
liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 16 | apiVersion: extensions/v1beta1 |
| 17 | kind: Deployment |
| 18 | metadata: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 19 | name: multicloud-framework |
| 20 | namespace: "{{ .Values.nsPrefix }}" |
liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 21 | spec: |
vaibhav_16dec | 65bb2de | 2018-02-16 07:46:32 +0000 | [diff] [blame] | 22 | replicas: {{ .Values.frameworkReplicas }} |
liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 23 | selector: |
| 24 | matchLabels: |
| 25 | app: framework |
| 26 | template: |
| 27 | metadata: |
| 28 | labels: |
| 29 | app: framework |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 30 | name: multicloud-framework |
liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 31 | spec: |
liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 32 | containers: |
| 33 | - env: |
liangke | bc3d8e9 | 2017-09-20 10:22:46 +0800 | [diff] [blame] | 34 | - name: MSB_ADDR |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 35 | value: {{ tpl .Values.msbgateway . }} |
Mike Elliott | 3c7a68f | 2017-09-21 11:50:59 -0400 | [diff] [blame] | 36 | - name: MSB_PORT |
liangke | bc3d8e9 | 2017-09-20 10:22:46 +0800 | [diff] [blame] | 37 | value: "{{ .Values.msbPort }}" |
liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 38 | - name: AAI_ADDR |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 39 | value: aai-service.{{ .Values.nsPrefix }} |
liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 40 | - name: AAI_PORT |
| 41 | value: "8443" |
| 42 | - name: AAI_SCHEMA_VERSION |
| 43 | value: "v11" |
| 44 | - name: AAI_USERNAME |
| 45 | value: "AAI" |
| 46 | - name: AAI_PASSWORD |
| 47 | value: "AAI" |
liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 48 | image: {{ .Values.image.framework }} |
| 49 | imagePullPolicy: {{ .Values.pullPolicy }} |
liangke | 2817f44 | 2018-01-30 18:39:25 +0800 | [diff] [blame] | 50 | name: framework |
| 51 | volumeMounts: |
| 52 | - mountPath: /var/log/onap |
| 53 | name: framework-log |
| 54 | - mountPath: /opt/multivimbroker/multivimbroker/pub/config/log.yml |
| 55 | name: framework-logconfig |
| 56 | subPath: log.yml |
liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 57 | ports: |
| 58 | - containerPort: 9001 |
| 59 | livenessProbe: |
| 60 | httpGet: |
| 61 | path: /api/multicloud/v0/swagger.json |
| 62 | port: 9001 |
| 63 | scheme: HTTP |
| 64 | initialDelaySeconds: 30 |
| 65 | periodSeconds: 10 |
| 66 | timeoutSeconds: 10 |
| 67 | successThreshold: 1 |
| 68 | failureThreshold: 5 |
liangke | 2817f44 | 2018-01-30 18:39:25 +0800 | [diff] [blame] | 69 | - image: {{ .Values.image.filebeat }} |
| 70 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 71 | name: filebeat-onap |
| 72 | volumeMounts: |
| 73 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 74 | name: filebeat-conf |
| 75 | subPath: filebeat.yml |
| 76 | - mountPath: /var/log/onap |
| 77 | name: framework-log |
| 78 | - mountPath: /usr/share/filebeat/data |
| 79 | name: framework-data-filebeat |
liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 80 | volumes: |
| 81 | - name: framework-log |
liangke | 2817f44 | 2018-01-30 18:39:25 +0800 | [diff] [blame] | 82 | emptyDir: {} |
| 83 | - name: framework-data-filebeat |
| 84 | emptyDir: {} |
| 85 | - name: filebeat-conf |
| 86 | configMap: |
| 87 | name: multicloud-filebeat-configmap |
| 88 | - name: framework-logconfig |
| 89 | configMap: |
| 90 | name: multicloud-framework-log-configmap |
liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 91 | imagePullSecrets: |
| 92 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
liangke | 2817f44 | 2018-01-30 18:39:25 +0800 | [diff] [blame] | 93 | restartPolicy: Always |
kerenj | f4a61d8 | 2018-02-25 14:29:41 +0000 | [diff] [blame] | 94 | #{{ end }} |