vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 15 | #{{ if not .Values.disableMulticloudMulticloudOcata }} |
Bin Yang | 0b2158e | 2017-09-26 07:21:57 +0800 | [diff] [blame] | 16 | apiVersion: extensions/v1beta1 |
| 17 | kind: Deployment |
| 18 | metadata: |
| 19 | name: multicloud-ocata |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 20 | namespace: "{{ .Values.nsPrefix }}" |
Bin Yang | 0b2158e | 2017-09-26 07:21:57 +0800 | [diff] [blame] | 21 | spec: |
vaibhav_16dec | 65bb2de | 2018-02-16 07:46:32 +0000 | [diff] [blame] | 22 | replicas: {{ .Values.ocataReplicas }} |
Bin Yang | 0b2158e | 2017-09-26 07:21:57 +0800 | [diff] [blame] | 23 | selector: |
| 24 | matchLabels: |
| 25 | app: multicloud-ocata |
| 26 | template: |
| 27 | metadata: |
| 28 | labels: |
| 29 | app: multicloud-ocata |
| 30 | name: multicloud-ocata |
| 31 | spec: |
| 32 | hostname: multicloud-ocata |
| 33 | containers: |
| 34 | - env: |
| 35 | - name: MSB_ADDR |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 36 | value: "{{ tpl .Values.msbgateway . }}" |
Bin Yang | 0b2158e | 2017-09-26 07:21:57 +0800 | [diff] [blame] | 37 | - name: MSB_PORT |
| 38 | value: "{{ .Values.msbPort }}" |
| 39 | - name: AAI_ADDR |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 40 | value: aai-service.{{ .Values.nsPrefix }} |
Bin Yang | 0b2158e | 2017-09-26 07:21:57 +0800 | [diff] [blame] | 41 | - name: AAI_PORT |
| 42 | value: "8443" |
| 43 | - name: AAI_SCHEMA_VERSION |
| 44 | value: "v11" |
| 45 | - name: AAI_USERNAME |
| 46 | value: "AAI" |
| 47 | - name: AAI_PASSWORD |
| 48 | value: "AAI" |
| 49 | name: multicloud-ocata |
| 50 | volumeMounts: |
| 51 | - mountPath: /opt/ocata/logs |
| 52 | name: ocata-log |
| 53 | image: {{ .Values.image.ocata }} |
| 54 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 55 | ports: |
| 56 | - containerPort: 9006 |
| 57 | livenessProbe: |
| 58 | httpGet: |
| 59 | path: /api/multicloud-ocata/v0/swagger.json |
| 60 | port: 9006 |
| 61 | scheme: HTTP |
| 62 | initialDelaySeconds: 30 |
| 63 | periodSeconds: 10 |
| 64 | timeoutSeconds: 10 |
| 65 | successThreshold: 1 |
| 66 | failureThreshold: 5 |
| 67 | restartPolicy: Always |
| 68 | volumes: |
| 69 | - name: ocata-log |
| 70 | hostPath: |
kerenj | f4a61d8 | 2018-02-25 14:29:41 +0000 | [diff] [blame] | 71 | path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/multicloud/ocata/logs |
Bin Yang | 0b2158e | 2017-09-26 07:21:57 +0800 | [diff] [blame] | 72 | imagePullSecrets: |
| 73 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
kerenj | f4a61d8 | 2018-02-25 14:29:41 +0000 | [diff] [blame] | 74 | #{{ end }} |