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