blob: a54c49a59d9ef38d8c3f68e7cd53e595a5f1dfb4 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableAaiAaiTraversal }}
Mandeep Khinda4b881972017-08-30 14:24:02 +00002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: aai-traversal
6 namespace: "{{ .Values.nsPrefix }}-aai"
7spec:
8 selector:
9 matchLabels:
10 app: aai-traversal
11 template:
12 metadata:
13 labels:
14 app: aai-traversal
15 name: aai-traversal
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 "--container-name",
23 "aai-resources"
24 ],
25 "command": [
26 "/root/ready.py"
27 ],
28 "env": [
29 {
30 "name": "NAMESPACE",
31 "valueFrom": {
32 "fieldRef": {
33 "apiVersion": "v1",
34 "fieldPath": "metadata.namespace"
35 }
36 }
37 }
38 ],
yuryn88e56c92017-09-04 16:42:08 +030039 "image": "{{ .Values.image.readiness }}",
40 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khinda76092d62017-09-01 02:15:17 +000041 "name": "aai-traversal-readiness"
42 }
Mike Elliott95b8c4a2017-09-22 11:31:54 -040043 ]'
Mandeep Khinda4b881972017-08-30 14:24:02 +000044 spec:
45 containers:
46 - name: aai-traversal
47 image: "{{ .Values.image.aaiTraversalImage }}:{{ .Values.image.aaiTraversalVersion }}"
48 imagePullPolicy: {{ .Values.pullPolicy }}
49 env:
50 - name: CHEF_BRANCH
51 value: master
52 - name: AAI_CHEF_ENV
53 value: simpledemo
54 - name: AAI_CORE_VERSION
55 value: 1.1.0-SNAPSHOT
56 - name: AAI_CHEF_LOC
57 value: /var/chef/aai-data/environments
58 - name: CHEF_GIT_URL
59 value: http://gerrit.onap.org/r/aai
Mike Elliott95b8c4a2017-09-22 11:31:54 -040060 - name: RESOURCES_HOSTNAME
61 value: aai-resources.{{ .Values.nsPrefix }}-aai
Mandeep Khinda4b881972017-08-30 14:24:02 +000062 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030063 - mountPath: /etc/localtime
64 name: localtime
65 readOnly: true
Mandeep Khinda4b881972017-08-30 14:24:02 +000066 - mountPath: /var/chef/aai-data/
67 name: aai-data
BorislavGb2b99182017-10-03 15:40:55 +030068 - mountPath: /var/log/onap
69 name: aai-traversal-logs
70 - mountPath: /opt/app/aai-traversal/bundleconfig/etc/logback.xml
71 name: aai-traversal-log-conf
72 subPath: logback.xml
Mandeep Khinda4b881972017-08-30 14:24:02 +000073 ports:
74 - containerPort: 8446
75 readinessProbe:
76 tcpSocket:
77 port: 8446
78 initialDelaySeconds: 5
79 periodSeconds: 10
BorislavGb2b99182017-10-03 15:40:55 +030080 - name: filebeat-onap-aai-traversal
81 image: {{ .Values.image.filebeat }}
82 imagePullPolicy: {{ .Values.pullPolicy }}
83 volumeMounts:
84 - mountPath: /usr/share/filebeat/filebeat.yml
85 name: filebeat-conf
86 - mountPath: /var/log/onap
87 name: aai-traversal-logs
88 - mountPath: /usr/share/filebeat/data
89 name: aai-traversal-filebeat
Mandeep Khinda4b881972017-08-30 14:24:02 +000090 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030091 - name: localtime
92 hostPath:
93 path: /etc/localtime
Mandeep Khinda4b881972017-08-30 14:24:02 +000094 - name: aai-data
95 hostPath:
96 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-data/"
BorislavGb2b99182017-10-03 15:40:55 +030097 - name: filebeat-conf
98 hostPath:
99 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/log4j/filebeat.yml
100 - name: aai-traversal-logs
101 emptyDir: {}
102 - name: aai-traversal-filebeat
103 emptyDir: {}
104 - name: aai-traversal-log-conf
105 configMap:
106 name: aai-traversal-configmap
Mandeep Khinda4b881972017-08-30 14:24:02 +0000107 restartPolicy: Always
108 imagePullSecrets:
109 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavGb2b99182017-10-03 15:40:55 +0300110---
111apiVersion: v1
112kind: ConfigMap
113metadata:
114 name: aai-traversal-configmap
115 namespace: {{ .Values.nsPrefix }}-aai
116data:
117{{ (.Files.Glob "resources/traversal/conf/logback.xml").AsConfig | indent 2 }}
yurynfcef9942017-10-26 17:10:50 +0300118#{{ end }}