blob: dd7d7cc9d9618118480fb9b3da86ee0d5ef7d44b [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableAaiAaiResources }}
Mandeep Khinda4b881972017-08-30 14:24:02 +00002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: aai-resources
6 namespace: "{{ .Values.nsPrefix }}-aai"
7spec:
vaibhav_16deca97d3fd2018-02-14 05:32:10 +00008 replicas: {{ .Values.aaiResourceReplicas }}
Mandeep Khinda4b881972017-08-30 14:24:02 +00009 selector:
10 matchLabels:
11 app: aai-resources
12 template:
13 metadata:
14 labels:
15 app: aai-resources
16 name: aai-resources
17 spec:
kiranya52a57832017-11-22 12:21:55 +000018 initContainers:
19 - command:
20 - /root/ready.py
21 args:
22 - --container-name
23 - hbase
24 env:
25 - name: NAMESPACE
26 valueFrom:
27 fieldRef:
28 apiVersion: v1
29 fieldPath: metadata.namespace
30 image: {{ .Values.image.readiness }}
31 imagePullPolicy: {{ .Values.pullPolicy }}
32 name: aai-resources-readiness
Mandeep Khinda4b881972017-08-30 14:24:02 +000033 containers:
34 - name: aai-resources
35 image: "{{ .Values.image.aaiResourcesImage }}:{{ .Values.image.aaiResourcesVersion}}"
36 imagePullPolicy: {{ .Values.pullPolicy }}
37 env:
38 - name: CHEF_BRANCH
39 value: master
40 - name: AAI_CHEF_ENV
41 value: simpledemo
42 - name: AAI_CORE_VERSION
43 value: 1.1.0-SNAPSHOT
44 - name: AAI_CHEF_LOC
45 value: /var/chef/aai-data/environments
46 - name: CHEF_GIT_URL
47 value: http://gerrit.onap.org/r/aai
Venkata Harish K Kajur6aaabe02017-10-04 05:06:35 +000048 - name: HBASE_STARTUP_ARTIFICIAL_DELAY
49 value: "60"
Mandeep Khinda4b881972017-08-30 14:24:02 +000050 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030051 - mountPath: /etc/localtime
52 name: localtime
53 readOnly: true
mayankg2703f313ba92018-02-05 09:01:02 +000054 - mountPath: /var/chef/aai-data/chef-config/dev/.knife/solo.rb
55 subPath: solo.rb
56 name: aai-chef-config
57 - mountPath: /var/chef/aai-data/environments/
Mandeep Khinda4b881972017-08-30 14:24:02 +000058 name: aai-data
BorislavGb2b99182017-10-03 15:40:55 +030059 - mountPath: /var/log/onap
60 name: aai-resources-logs
61 - mountPath: /opt/app/aai-resources/bundleconfig/etc/logback.xml
62 name: aai-resources-log-conf
63 subPath: logback.xml
Mandeep Khinda4b881972017-08-30 14:24:02 +000064 ports:
65 - containerPort: 8447
66 readinessProbe:
67 tcpSocket:
68 port: 8447
69 initialDelaySeconds: 5
70 periodSeconds: 10
BorislavGb2b99182017-10-03 15:40:55 +030071 - name: filebeat-onap-aai-resources
72 image: {{ .Values.image.filebeat }}
73 imagePullPolicy: {{ .Values.pullPolicy }}
74 volumeMounts:
75 - mountPath: /usr/share/filebeat/filebeat.yml
mayankg2703f313ba92018-02-05 09:01:02 +000076 subPath: filebeat.yml
BorislavGb2b99182017-10-03 15:40:55 +030077 name: filebeat-conf
78 - mountPath: /var/log/onap
79 name: aai-resources-logs
80 - mountPath: /usr/share/filebeat/data
81 name: aai-resources-filebeat
Mandeep Khinda4b881972017-08-30 14:24:02 +000082 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030083 - name: localtime
84 hostPath:
85 path: /etc/localtime
mayankg2703f313ba92018-02-05 09:01:02 +000086 - name: aai-chef-config
87 configMap:
88 name: aai-chef-config-configmap
Mandeep Khinda4b881972017-08-30 14:24:02 +000089 - name: aai-data
mayankg2703f313ba92018-02-05 09:01:02 +000090 configMap:
91 name: aai-resources-environments-configmap
BorislavGb2b99182017-10-03 15:40:55 +030092 - name: filebeat-conf
mayankg2703f313ba92018-02-05 09:01:02 +000093 configMap:
94 name: aai-filebeat-configmap
BorislavGb2b99182017-10-03 15:40:55 +030095 - name: aai-resources-logs
96 emptyDir: {}
97 - name: aai-resources-filebeat
98 emptyDir: {}
99 - name: aai-resources-log-conf
100 configMap:
mayankg2703b090fba2018-02-07 05:48:29 +0000101 name: aai-resources-log-configmap
Mandeep Khinda4b881972017-08-30 14:24:02 +0000102 restartPolicy: Always
103 imagePullSecrets:
104 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kiranya52a57832017-11-22 12:21:55 +0000105#{{ end }}