blob: d2a9c42f3f6103f8060a5866fd8c516668261c95 [file] [log] [blame]
Mandeep Khinda4b881972017-08-30 14:24:02 +00001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: aai-traversal
5 namespace: "{{ .Values.nsPrefix }}-aai"
6spec:
7 selector:
8 matchLabels:
9 app: aai-traversal
10 template:
11 metadata:
12 labels:
13 app: aai-traversal
14 name: aai-traversal
Mandeep Khinda76092d62017-09-01 02:15:17 +000015 annotations:
16 pod.beta.kubernetes.io/init-containers: '[
17 {
18 "args": [
19 "--container-name",
20 "hbase",
21 "--container-name",
22 "aai-resources"
23 ],
24 "command": [
25 "/root/ready.py"
26 ],
27 "env": [
28 {
29 "name": "NAMESPACE",
30 "valueFrom": {
31 "fieldRef": {
32 "apiVersion": "v1",
33 "fieldPath": "metadata.namespace"
34 }
35 }
36 }
37 ],
yuryn88e56c92017-09-04 16:42:08 +030038 "image": "{{ .Values.image.readiness }}",
39 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khinda76092d62017-09-01 02:15:17 +000040 "name": "aai-traversal-readiness"
41 }
Mike Elliott95b8c4a2017-09-22 11:31:54 -040042 ]'
Mandeep Khinda4b881972017-08-30 14:24:02 +000043 spec:
44 containers:
45 - name: aai-traversal
46 image: "{{ .Values.image.aaiTraversalImage }}:{{ .Values.image.aaiTraversalVersion }}"
47 imagePullPolicy: {{ .Values.pullPolicy }}
48 env:
49 - name: CHEF_BRANCH
50 value: master
51 - name: AAI_CHEF_ENV
52 value: simpledemo
53 - name: AAI_CORE_VERSION
54 value: 1.1.0-SNAPSHOT
55 - name: AAI_CHEF_LOC
56 value: /var/chef/aai-data/environments
57 - name: CHEF_GIT_URL
58 value: http://gerrit.onap.org/r/aai
Mike Elliott95b8c4a2017-09-22 11:31:54 -040059 - name: RESOURCES_HOSTNAME
60 value: aai-resources.{{ .Values.nsPrefix }}-aai
Mandeep Khinda4b881972017-08-30 14:24:02 +000061 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030062 - mountPath: /etc/localtime
63 name: localtime
64 readOnly: true
Mandeep Khinda4b881972017-08-30 14:24:02 +000065 - mountPath: /var/chef/aai-data/
66 name: aai-data
BorislavGb2b99182017-10-03 15:40:55 +030067 - mountPath: /var/log/onap
68 name: aai-traversal-logs
69 - mountPath: /opt/app/aai-traversal/bundleconfig/etc/logback.xml
70 name: aai-traversal-log-conf
71 subPath: logback.xml
Mandeep Khinda4b881972017-08-30 14:24:02 +000072 ports:
73 - containerPort: 8446
74 readinessProbe:
75 tcpSocket:
76 port: 8446
77 initialDelaySeconds: 5
78 periodSeconds: 10
BorislavGb2b99182017-10-03 15:40:55 +030079 - name: filebeat-onap-aai-traversal
80 image: {{ .Values.image.filebeat }}
81 imagePullPolicy: {{ .Values.pullPolicy }}
82 volumeMounts:
83 - mountPath: /usr/share/filebeat/filebeat.yml
84 name: filebeat-conf
85 - mountPath: /var/log/onap
86 name: aai-traversal-logs
87 - mountPath: /usr/share/filebeat/data
88 name: aai-traversal-filebeat
Mandeep Khinda4b881972017-08-30 14:24:02 +000089 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030090 - name: localtime
91 hostPath:
92 path: /etc/localtime
Mandeep Khinda4b881972017-08-30 14:24:02 +000093 - name: aai-data
94 hostPath:
95 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-data/"
BorislavGb2b99182017-10-03 15:40:55 +030096 - name: filebeat-conf
97 hostPath:
98 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/log4j/filebeat.yml
99 - name: aai-traversal-logs
100 emptyDir: {}
101 - name: aai-traversal-filebeat
102 emptyDir: {}
103 - name: aai-traversal-log-conf
104 configMap:
105 name: aai-traversal-configmap
Mandeep Khinda4b881972017-08-30 14:24:02 +0000106 restartPolicy: Always
107 imagePullSecrets:
108 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavGb2b99182017-10-03 15:40:55 +0300109---
110apiVersion: v1
111kind: ConfigMap
112metadata:
113 name: aai-traversal-configmap
114 namespace: {{ .Values.nsPrefix }}-aai
115data:
116{{ (.Files.Glob "resources/traversal/conf/logback.xml").AsConfig | indent 2 }}
117