blob: c1b385865b0087e6cbeb3f34e3ac2c33cab50016 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# 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
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disableMulticloudMulticloudWindriver }}
Bin Yang0b2158e2017-09-26 07:21:57 +080016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
19 name: multicloud-windriver
BorislavG8bfc6cf2018-02-27 15:04:26 +000020 namespace: "{{ .Values.nsPrefix }}"
Bin Yang0b2158e2017-09-26 07:21:57 +080021spec:
vaibhav_16dec65bb2de2018-02-16 07:46:32 +000022 replicas: {{ .Values.windRiverReplicas }}
Bin Yang0b2158e2017-09-26 07:21:57 +080023 selector:
24 matchLabels:
25 app: multicloud-windriver
26 template:
27 metadata:
28 labels:
29 app: multicloud-windriver
30 name: multicloud-windriver
31 spec:
Bin Yang0b2158e2017-09-26 07:21:57 +080032 containers:
33 - env:
34 - name: MSB_ADDR
BorislavG8bfc6cf2018-02-27 15:04:26 +000035 value: "{{ tpl .Values.msbgateway . }}"
Bin Yang0b2158e2017-09-26 07:21:57 +080036 - name: MSB_PORT
37 value: "{{ .Values.msbPort }}"
38 - name: AAI_ADDR
BorislavG8bfc6cf2018-02-27 15:04:26 +000039 value: aai-service.{{ .Values.nsPrefix }}
Bin Yang0b2158e2017-09-26 07:21:57 +080040 - 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"
48 name: multicloud-windriver
49 volumeMounts:
Bin Yangc86d6a72018-03-13 10:03:08 +080050 - mountPath: /var/log/onap
Bin Yang0b2158e2017-09-26 07:21:57 +080051 name: windriver-log
Bin Yangc86d6a72018-03-13 10:03:08 +080052 - mountPath: /opt/windriver/titanium_cloud/pub/config/log.yml
53 name: windriver-logconfig
54 subPath: log.yml
Bin Yang0b2158e2017-09-26 07:21:57 +080055 image: {{ .Values.image.windriver }}
56 imagePullPolicy: {{ .Values.pullPolicy }}
57 ports:
58 - containerPort: 9005
59 livenessProbe:
60 httpGet:
61 path: /api/multicloud-titanium_cloud/v0/swagger.json
62 port: 9005
63 scheme: HTTP
64 initialDelaySeconds: 30
65 periodSeconds: 10
66 timeoutSeconds: 10
67 successThreshold: 1
68 failureThreshold: 5
Mike Elliotteb418e92018-03-26 11:39:22 -040069 - image: {{ .Values.image.filebeat }}
Bin Yangc86d6a72018-03-13 10:03:08 +080070 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: windriver-log
78 - mountPath: /usr/share/filebeat/data
79 name: windriver-data-filebeat
Bin Yang0b2158e2017-09-26 07:21:57 +080080 volumes:
81 - name: windriver-log
Bin Yangc86d6a72018-03-13 10:03:08 +080082 emptyDir: {}
83 - name: windriver-data-filebeat
84 emptyDir: {}
85 - name: filebeat-conf
86 configMap:
87 name: multicloud-filebeat-configmap
88 - name: windriver-logconfig
89 configMap:
90 name: multicloud-windriver-log-configmap
Bin Yang0b2158e2017-09-26 07:21:57 +080091 imagePullSecrets:
92 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
Bin Yangc86d6a72018-03-13 10:03:08 +080093 restartPolicy: Always
kerenjf4a61d82018-02-25 14:29:41 +000094#{{ end }}