blob: aa1008acab17df63193d8311cd85b4ed1bc78c5a [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# 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
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disableMulticloudMulticloudOcata }}
Bin Yang0b2158e2017-09-26 07:21:57 +080016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
19 name: multicloud-ocata
BorislavG8bfc6cf2018-02-27 15:04:26 +000020 namespace: "{{ .Values.nsPrefix }}"
Bin Yang0b2158e2017-09-26 07:21:57 +080021spec:
vaibhav_16dec65bb2de2018-02-16 07:46:32 +000022 replicas: {{ .Values.ocataReplicas }}
Bin Yang0b2158e2017-09-26 07:21:57 +080023 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
BorislavG8bfc6cf2018-02-27 15:04:26 +000036 value: "{{ tpl .Values.msbgateway . }}"
Bin Yang0b2158e2017-09-26 07:21:57 +080037 - name: MSB_PORT
38 value: "{{ .Values.msbPort }}"
39 - name: AAI_ADDR
BorislavG8bfc6cf2018-02-27 15:04:26 +000040 value: aai-service.{{ .Values.nsPrefix }}
Bin Yang0b2158e2017-09-26 07:21:57 +080041 - 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:
kerenjf4a61d82018-02-25 14:29:41 +000071 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/multicloud/ocata/logs
Bin Yang0b2158e2017-09-26 07:21:57 +080072 imagePullSecrets:
73 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kerenjf4a61d82018-02-25 14:29:41 +000074#{{ end }}