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