blob: debd1f69263f34f4d5752fbe461c24beb7dc1c5e [file] [log] [blame]
Mandeep Khindafc068432017-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 Khindac432f862017-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 ],
yuryn4c6a50e2017-09-04 16:42:08 +030038 "image": "{{ .Values.image.readiness }}",
39 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindac432f862017-09-01 02:15:17 +000040 "name": "aai-traversal-readiness"
41 }
42 ]'
Mandeep Khindafc068432017-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
59 volumeMounts:
Mandeep Khindac432f862017-09-01 02:15:17 +000060 - mountPath: /opt/aai/logroot/
Mandeep Khindafc068432017-08-30 14:24:02 +000061 name: aai-traversal-logs
Mandeep Khindafc068432017-08-30 14:24:02 +000062 - mountPath: /var/chef/aai-data/
63 name: aai-data
Mandeep Khindac432f862017-09-01 02:15:17 +000064 - mountPath: /docker-entrypoint.sh
65 name: entrypoint-override
Mandeep Khindafc068432017-08-30 14:24:02 +000066 ports:
67 - containerPort: 8446
68 readinessProbe:
69 tcpSocket:
70 port: 8446
71 initialDelaySeconds: 5
72 periodSeconds: 10
73 volumes:
74 - name: aai-traversal-logs
75 hostPath:
76 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-traversal/logs/"
Mandeep Khindafc068432017-08-30 14:24:02 +000077 - name: aai-data
78 hostPath:
79 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-data/"
Mandeep Khindac432f862017-09-01 02:15:17 +000080 - name: entrypoint-override
81 hostPath:
82 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-traversal/docker-entrypoint.sh"
Mandeep Khindafc068432017-08-30 14:24:02 +000083 restartPolicy: Always
84 imagePullSecrets:
85 - name: "{{ .Values.nsPrefix }}-docker-registry-key"