blob: 168d1d611e954eb93e0129eb35c22ee30fc1d076 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableMulticloudMulticloudWindriver }}
Bin Yang0b2158e2017-09-26 07:21:57 +08002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: multicloud-windriver
BorislavG8bfc6cf2018-02-27 15:04:26 +00006 namespace: "{{ .Values.nsPrefix }}"
Bin Yang0b2158e2017-09-26 07:21:57 +08007spec:
vaibhav_16dec65bb2de2018-02-16 07:46:32 +00008 replicas: {{ .Values.windRiverReplicas }}
Bin Yang0b2158e2017-09-26 07:21:57 +08009 selector:
10 matchLabels:
11 app: multicloud-windriver
12 template:
13 metadata:
14 labels:
15 app: multicloud-windriver
16 name: multicloud-windriver
17 spec:
18 hostname: multicloud-windriver
19 containers:
20 - env:
21 - name: MSB_ADDR
BorislavG8bfc6cf2018-02-27 15:04:26 +000022 value: "{{ tpl .Values.msbgateway . }}"
Bin Yang0b2158e2017-09-26 07:21:57 +080023 - name: MSB_PORT
24 value: "{{ .Values.msbPort }}"
25 - name: AAI_ADDR
BorislavG8bfc6cf2018-02-27 15:04:26 +000026 value: aai-service.{{ .Values.nsPrefix }}
Bin Yang0b2158e2017-09-26 07:21:57 +080027 - name: AAI_PORT
28 value: "8443"
29 - name: AAI_SCHEMA_VERSION
30 value: "v11"
31 - name: AAI_USERNAME
32 value: "AAI"
33 - name: AAI_PASSWORD
34 value: "AAI"
35 name: multicloud-windriver
36 volumeMounts:
37 - mountPath: /opt/windriver/logs
38 name: windriver-log
39 image: {{ .Values.image.windriver }}
40 imagePullPolicy: {{ .Values.pullPolicy }}
41 ports:
42 - containerPort: 9005
43 livenessProbe:
44 httpGet:
45 path: /api/multicloud-titanium_cloud/v0/swagger.json
46 port: 9005
47 scheme: HTTP
48 initialDelaySeconds: 30
49 periodSeconds: 10
50 timeoutSeconds: 10
51 successThreshold: 1
52 failureThreshold: 5
53 restartPolicy: Always
54 volumes:
55 - name: windriver-log
56 hostPath:
kerenjf4a61d82018-02-25 14:29:41 +000057 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/multicloud/windriver/logs
Bin Yang0b2158e2017-09-26 07:21:57 +080058 imagePullSecrets:
59 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kerenjf4a61d82018-02-25 14:29:41 +000060#{{ end }}