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: |
vaibhav_16dec | 65bb2de | 2018-02-16 07:46:32 +0000 | [diff] [blame] | 8 | replicas: {{ .Values.windRiverReplicas }} |
Bin Yang | 0b2158e | 2017-09-26 07:21:57 +0800 | [diff] [blame] | 9 | selector: |
| 10 | matchLabels: |
| 11 | app: multicloud-windriver |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: multicloud-windriver |
| 16 | name: multicloud-windriver |
| 17 | spec: |
| 18 | hostname: multicloud-windriver |
| 19 | containers: |
| 20 | - env: |
| 21 | - name: MSB_ADDR |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 22 | value: "{{ tpl .Values.msbgateway . }}" |
Bin Yang | 0b2158e | 2017-09-26 07:21:57 +0800 | [diff] [blame] | 23 | - name: MSB_PORT |
| 24 | value: "{{ .Values.msbPort }}" |
| 25 | - name: AAI_ADDR |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 26 | value: aai-service.{{ .Values.nsPrefix }} |
Bin Yang | 0b2158e | 2017-09-26 07:21:57 +0800 | [diff] [blame] | 27 | - name: AAI_PORT |
| 28 | value: "8443" |
| 29 | - name: AAI_SCHEMA_VERSION |
| 30 | value: "v11" |
| 31 | - name: AAI_USERNAME |
| 32 | value: "AAI" |
| 33 | - name: AAI_PASSWORD |
| 34 | value: "AAI" |
| 35 | name: multicloud-windriver |
| 36 | volumeMounts: |
| 37 | - mountPath: /opt/windriver/logs |
| 38 | name: windriver-log |
| 39 | image: {{ .Values.image.windriver }} |
| 40 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 41 | ports: |
| 42 | - containerPort: 9005 |
| 43 | livenessProbe: |
| 44 | httpGet: |
| 45 | path: /api/multicloud-titanium_cloud/v0/swagger.json |
| 46 | port: 9005 |
| 47 | scheme: HTTP |
| 48 | initialDelaySeconds: 30 |
| 49 | periodSeconds: 10 |
| 50 | timeoutSeconds: 10 |
| 51 | successThreshold: 1 |
| 52 | failureThreshold: 5 |
| 53 | restartPolicy: Always |
| 54 | volumes: |
| 55 | - name: windriver-log |
| 56 | hostPath: |
kerenj | f4a61d8 | 2018-02-25 14:29:41 +0000 | [diff] [blame] | 57 | path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/multicloud/windriver/logs |
Bin Yang | 0b2158e | 2017-09-26 07:21:57 +0800 | [diff] [blame] | 58 | imagePullSecrets: |
| 59 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
kerenj | f4a61d8 | 2018-02-25 14:29:41 +0000 | [diff] [blame] | 60 | #{{ end }} |