blob: ebf447f3ca644b54553b3589928214b4f9a213cb [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:
8 selector:
9 matchLabels:
10 app: aai-resources
11 template:
12 metadata:
13 labels:
14 app: aai-resources
15 name: aai-resources
Mandeep Khinda76092d62017-09-01 02:15:17 +000016 annotations:
17 pod.beta.kubernetes.io/init-containers: '[
18 {
19 "args": [
20 "--container-name",
21 "hbase"
22 ],
23 "command": [
24 "/root/ready.py"
25 ],
26 "env": [
27 {
28 "name": "NAMESPACE",
29 "valueFrom": {
30 "fieldRef": {
31 "apiVersion": "v1",
32 "fieldPath": "metadata.namespace"
33 }
34 }
35 }
36 ],
yuryn88e56c92017-09-04 16:42:08 +030037 "image": "{{ .Values.image.readiness }}",
38 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khinda76092d62017-09-01 02:15:17 +000039 "name": "aai-resources-readiness"
40 }
Mike Elliott95b8c4a2017-09-22 11:31:54 -040041 ]'
Mandeep Khinda4b881972017-08-30 14:24:02 +000042 spec:
43 containers:
44 - name: aai-resources
45 image: "{{ .Values.image.aaiResourcesImage }}:{{ .Values.image.aaiResourcesVersion}}"
46 imagePullPolicy: {{ .Values.pullPolicy }}
47 env:
48 - name: CHEF_BRANCH
49 value: master
50 - name: AAI_CHEF_ENV
51 value: simpledemo
52 - name: AAI_CORE_VERSION
53 value: 1.1.0-SNAPSHOT
54 - name: AAI_CHEF_LOC
55 value: /var/chef/aai-data/environments
56 - name: CHEF_GIT_URL
57 value: http://gerrit.onap.org/r/aai
Venkata Harish K Kajur6aaabe02017-10-04 05:06:35 +000058 - name: HBASE_STARTUP_ARTIFICIAL_DELAY
59 value: "60"
Mandeep Khinda4b881972017-08-30 14:24:02 +000060 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030061 - mountPath: /etc/localtime
62 name: localtime
63 readOnly: true
Mandeep Khinda4b881972017-08-30 14:24:02 +000064 - mountPath: /var/chef/aai-data/
65 name: aai-data
BorislavGb2b99182017-10-03 15:40:55 +030066 - mountPath: /var/log/onap
67 name: aai-resources-logs
68 - mountPath: /opt/app/aai-resources/bundleconfig/etc/logback.xml
69 name: aai-resources-log-conf
70 subPath: logback.xml
Mandeep Khinda4b881972017-08-30 14:24:02 +000071 ports:
72 - containerPort: 8447
73 readinessProbe:
74 tcpSocket:
75 port: 8447
76 initialDelaySeconds: 5
77 periodSeconds: 10
BorislavGb2b99182017-10-03 15:40:55 +030078 - name: filebeat-onap-aai-resources
79 image: {{ .Values.image.filebeat }}
80 imagePullPolicy: {{ .Values.pullPolicy }}
81 volumeMounts:
82 - mountPath: /usr/share/filebeat/filebeat.yml
83 name: filebeat-conf
84 - mountPath: /var/log/onap
85 name: aai-resources-logs
86 - mountPath: /usr/share/filebeat/data
87 name: aai-resources-filebeat
Mandeep Khinda4b881972017-08-30 14:24:02 +000088 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030089 - name: localtime
90 hostPath:
91 path: /etc/localtime
Mandeep Khinda4b881972017-08-30 14:24:02 +000092 - name: aai-data
93 hostPath:
94 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-data/"
BorislavGb2b99182017-10-03 15:40:55 +030095 - name: filebeat-conf
96 hostPath:
97 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/log4j/filebeat.yml
98 - name: aai-resources-logs
99 emptyDir: {}
100 - name: aai-resources-filebeat
101 emptyDir: {}
102 - name: aai-resources-log-conf
103 configMap:
104 name: aai-resources-configmap
Mandeep Khinda4b881972017-08-30 14:24:02 +0000105 restartPolicy: Always
106 imagePullSecrets:
107 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavGb2b99182017-10-03 15:40:55 +0300108---
109apiVersion: v1
110kind: ConfigMap
111metadata:
112 name: aai-resources-configmap
113 namespace: {{ .Values.nsPrefix }}-aai
114data:
115{{ (.Files.Glob "resources/resources/conf/logback.xml").AsConfig | indent 2 }}
yurynfcef9942017-10-26 17:10:50 +0300116#{{ end }}