License addition in all yamls
[oom.git] / kubernetes / multicloud / templates / multicloud-ocata-deployment.yaml
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
15 #{{ if not .Values.disableMulticloudMulticloudOcata }}
16 apiVersion: extensions/v1beta1
17 kind: Deployment
18 metadata:
19   name: multicloud-ocata
20   namespace: "{{ .Values.nsPrefix }}"
21 spec:
22   replicas: {{ .Values.ocataReplicas }}
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
36          value: "{{ tpl .Values.msbgateway . }}"
37        - name: MSB_PORT
38          value: "{{ .Values.msbPort }}"
39        - name: AAI_ADDR
40          value: aai-service.{{ .Values.nsPrefix }}
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:
71          path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/multicloud/ocata/logs
72      imagePullSecrets:
73      - name: "{{ .Values.nsPrefix }}-docker-registry-key"
74 #{{ end }}