yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableMulticloudMulticloudWindriver }} |
Bin Yang | 0b2158e | 2017-09-26 07:21:57 +0800 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: multicloud-windriver |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}" |
Bin Yang | 0b2158e | 2017-09-26 07:21:57 +0800 | [diff] [blame] | 7 | spec: |
| 8 | selector: |
| 9 | matchLabels: |
| 10 | app: multicloud-windriver |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: multicloud-windriver |
| 15 | name: multicloud-windriver |
| 16 | spec: |
| 17 | hostname: multicloud-windriver |
| 18 | containers: |
| 19 | - env: |
| 20 | - name: MSB_ADDR |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 21 | value: "{{ tpl .Values.msbgateway . }}" |
Bin Yang | 0b2158e | 2017-09-26 07:21:57 +0800 | [diff] [blame] | 22 | - name: MSB_PORT |
| 23 | value: "{{ .Values.msbPort }}" |
| 24 | - name: AAI_ADDR |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 25 | value: aai-service.{{ .Values.nsPrefix }} |
Bin Yang | 0b2158e | 2017-09-26 07:21:57 +0800 | [diff] [blame] | 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-windriver |
| 35 | volumeMounts: |
| 36 | - mountPath: /opt/windriver/logs |
| 37 | name: windriver-log |
| 38 | image: {{ .Values.image.windriver }} |
| 39 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 40 | ports: |
| 41 | - containerPort: 9005 |
| 42 | livenessProbe: |
| 43 | httpGet: |
| 44 | path: /api/multicloud-titanium_cloud/v0/swagger.json |
| 45 | port: 9005 |
| 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: windriver-log |
| 55 | hostPath: |
kerenj | f4a61d8 | 2018-02-25 14:29:41 +0000 | [diff] [blame] | 56 | path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/multicloud/windriver/logs |
Bin Yang | 0b2158e | 2017-09-26 07:21:57 +0800 | [diff] [blame] | 57 | imagePullSecrets: |
| 58 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
kerenj | f4a61d8 | 2018-02-25 14:29:41 +0000 | [diff] [blame] | 59 | #{{ end }} |