liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: multicloud-vio |
| 5 | namespace: "{{ .Values.nsPrefix }}-multicloud" |
| 6 | spec: |
| 7 | selector: |
| 8 | matchLabels: |
| 9 | app: multicloud-vio |
| 10 | template: |
| 11 | metadata: |
| 12 | labels: |
| 13 | app: multicloud-vio |
| 14 | name: multicloud-vio |
| 15 | spec: |
| 16 | hostname: multicloud-vio |
| 17 | containers: |
| 18 | - env: |
liangke | bc3d8e9 | 2017-09-20 10:22:46 +0800 | [diff] [blame^] | 19 | - name: MSB_ADDR |
| 20 | value: "{{ .Values.msbgateway }}" |
| 21 | - name: MSB_PORT |
| 22 | value: "{{ .Values.msbPort }}" |
liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 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-vio |
| 34 | volumeMounts: |
| 35 | - mountPath: /service/vio/logs |
| 36 | name: vio-log |
| 37 | image: {{ .Values.image.vio }} |
| 38 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 39 | ports: |
| 40 | - containerPort: 9004 |
| 41 | livenessProbe: |
| 42 | httpGet: |
| 43 | path: /api/multicloud-vio/v0/swagger.json |
| 44 | port: 9004 |
| 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: vio-log |
| 54 | hostPath: |
| 55 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/multicloud/vio/logs |
| 56 | imagePullSecrets: |
| 57 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
| 58 | |
| 59 | |