blob: 994fe94c0378e399515d53b266c400a6c2b2a9fb [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableMulticloudMulticloudOcata }}
Bin Yang0b2158e2017-09-26 07:21:57 +08002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: multicloud-ocata
6 namespace: "{{ .Values.nsPrefix }}-multicloud"
7spec:
8 selector:
9 matchLabels:
10 app: multicloud-ocata
11 template:
12 metadata:
13 labels:
14 app: multicloud-ocata
15 name: multicloud-ocata
16 spec:
17 hostname: multicloud-ocata
18 containers:
19 - env:
20 - name: MSB_ADDR
21 value: "{{ .Values.msbgateway }}"
22 - name: MSB_PORT
23 value: "{{ .Values.msbPort }}"
24 - name: AAI_ADDR
25 value: aai-service.{{ .Values.nsPrefix }}-aai
26 - name: AAI_PORT
27 value: "8443"
28 - name: AAI_SCHEMA_VERSION
29 value: "v11"
30 - name: AAI_USERNAME
31 value: "AAI"
32 - name: AAI_PASSWORD
33 value: "AAI"
34 name: multicloud-ocata
35 volumeMounts:
36 - mountPath: /opt/ocata/logs
37 name: ocata-log
38 image: {{ .Values.image.ocata }}
39 imagePullPolicy: {{ .Values.pullPolicy }}
40 ports:
41 - containerPort: 9006
42 livenessProbe:
43 httpGet:
44 path: /api/multicloud-ocata/v0/swagger.json
45 port: 9006
46 scheme: HTTP
47 initialDelaySeconds: 30
48 periodSeconds: 10
49 timeoutSeconds: 10
50 successThreshold: 1
51 failureThreshold: 5
52 restartPolicy: Always
53 volumes:
54 - name: ocata-log
55 hostPath:
56 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/multicloud/ocata/logs
57 imagePullSecrets:
58 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +030059#{{ end }}