blob: b0d437b61d9ea7d2f3345f0ad1b6a4ded45bf196 [file] [log] [blame]
Mandeep Khindafc068432017-08-30 14:24:02 +00001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: aai-resources
5 namespace: "{{ .Values.nsPrefix }}-aai"
6spec:
7 selector:
8 matchLabels:
9 app: aai-resources
10 template:
11 metadata:
12 labels:
13 app: aai-resources
14 name: aai-resources
Mandeep Khindac432f862017-09-01 02:15:17 +000015 annotations:
16 pod.beta.kubernetes.io/init-containers: '[
17 {
18 "args": [
19 "--container-name",
20 "hbase"
21 ],
22 "command": [
23 "/root/ready.py"
24 ],
25 "env": [
26 {
27 "name": "NAMESPACE",
28 "valueFrom": {
29 "fieldRef": {
30 "apiVersion": "v1",
31 "fieldPath": "metadata.namespace"
32 }
33 }
34 }
35 ],
yuryn4c6a50e2017-09-04 16:42:08 +030036 "image": "{{ .Values.image.readiness }}",
37 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindac432f862017-09-01 02:15:17 +000038 "name": "aai-resources-readiness"
39 }
Mike Elliott47e76d02017-09-22 11:31:54 -040040 ]'
Mandeep Khindafc068432017-08-30 14:24:02 +000041 spec:
42 containers:
43 - name: aai-resources
44 image: "{{ .Values.image.aaiResourcesImage }}:{{ .Values.image.aaiResourcesVersion}}"
45 imagePullPolicy: {{ .Values.pullPolicy }}
46 env:
47 - name: CHEF_BRANCH
48 value: master
49 - name: AAI_CHEF_ENV
50 value: simpledemo
51 - name: AAI_CORE_VERSION
52 value: 1.1.0-SNAPSHOT
53 - name: AAI_CHEF_LOC
54 value: /var/chef/aai-data/environments
55 - name: CHEF_GIT_URL
56 value: http://gerrit.onap.org/r/aai
Venkata Harish K Kajur3078f1e2017-10-04 05:06:35 +000057 - name: HBASE_STARTUP_ARTIFICIAL_DELAY
58 value: "60"
Mandeep Khindafc068432017-08-30 14:24:02 +000059 volumeMounts:
yurync400bf52017-09-13 19:21:03 +030060 - mountPath: /etc/localtime
61 name: localtime
62 readOnly: true
Mandeep Khindafc068432017-08-30 14:24:02 +000063 - mountPath: /var/chef/aai-data/
64 name: aai-data
BorislavGc4bafe12017-10-03 15:40:55 +030065 - mountPath: /var/log/onap
66 name: aai-resources-logs
67 - mountPath: /opt/app/aai-resources/bundleconfig/etc/logback.xml
68 name: aai-resources-log-conf
69 subPath: logback.xml
Mandeep Khindafc068432017-08-30 14:24:02 +000070 ports:
71 - containerPort: 8447
72 readinessProbe:
73 tcpSocket:
74 port: 8447
75 initialDelaySeconds: 5
76 periodSeconds: 10
BorislavGc4bafe12017-10-03 15:40:55 +030077 - name: filebeat-onap-aai-resources
78 image: {{ .Values.image.filebeat }}
79 imagePullPolicy: {{ .Values.pullPolicy }}
80 volumeMounts:
81 - mountPath: /usr/share/filebeat/filebeat.yml
82 name: filebeat-conf
83 - mountPath: /var/log/onap
84 name: aai-resources-logs
85 - mountPath: /usr/share/filebeat/data
86 name: aai-resources-filebeat
Mandeep Khindafc068432017-08-30 14:24:02 +000087 volumes:
yurync400bf52017-09-13 19:21:03 +030088 - name: localtime
89 hostPath:
90 path: /etc/localtime
Mandeep Khindafc068432017-08-30 14:24:02 +000091 - name: aai-data
92 hostPath:
93 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-data/"
BorislavGc4bafe12017-10-03 15:40:55 +030094 - name: filebeat-conf
95 hostPath:
96 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/log4j/filebeat.yml
97 - name: aai-resources-logs
98 emptyDir: {}
99 - name: aai-resources-filebeat
100 emptyDir: {}
101 - name: aai-resources-log-conf
102 configMap:
103 name: aai-resources-configmap
Mandeep Khindafc068432017-08-30 14:24:02 +0000104 restartPolicy: Always
105 imagePullSecrets:
106 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavGc4bafe12017-10-03 15:40:55 +0300107---
108apiVersion: v1
109kind: ConfigMap
110metadata:
111 name: aai-resources-configmap
112 namespace: {{ .Values.nsPrefix }}-aai
113data:
114{{ (.Files.Glob "resources/resources/conf/logback.xml").AsConfig | indent 2 }}
115