blob: 286a9aca537aa6829de842d7602f8fdef82e921d [file] [log] [blame]
Mandeep Khinda71439a72017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: aai-service
kerenj3db4be52017-08-24 11:32:22 +00005 namespace: {{ .Values.NS }}
Mandeep Khinda71439a72017-06-24 11:49:37 -04006spec:
7 selector:
8 matchLabels:
9 app: aai-service
10 template:
11 metadata:
12 labels:
13 app: aai-service
14 name: aai-service
15 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 ],
kerenj3db4be52017-08-24 11:32:22 +000036 "image": "{{ .Values.image.readiness }}",
37 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khinda71439a72017-06-24 11:49:37 -040038 "name": "aai-service-readiness"
39 }
40 ]'
41 spec:
42 containers:
43 - env:
44 - name: AAI_REPO_PATH
45 value: r/aai
46 - name: AAI_CHEF_ENV
47 value: simpledemo
48 - name: AAI_CHEF_LOC
49 value: /var/chef/aai-data/environments
50 - name: docker_gitbranch
51 value: release-1.0.0
52 - name: DEBIAN_FRONTEND
53 value: noninteractive
54 - name: JAVA_HOME
55 value: /usr/lib/jvm/java-8-openjdk-amd64
kerenj3db4be52017-08-24 11:32:22 +000056 image: {{ .Values.image.ajscAai }}
57 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khinda71439a72017-06-24 11:49:37 -040058 name: aai-service
59 volumeMounts:
60 - mountPath: /etc/ssl/certs/
61 name: aai-service-certs
62 - mountPath: /opt/aai/logroot/
63 name: aai-service-logroot
64 - mountPath: /var/chef/aai-config/
65 name: aai-config
66 - mountPath: /var/chef/aai-data/
67 name: aai-data
68 ports:
69 - containerPort: 8080
70 - containerPort: 8443
71 readinessProbe:
72 tcpSocket:
73 port: 8443
74 initialDelaySeconds: 5
75 periodSeconds: 10
76 volumes:
77 - name: aai-service-certs
78 hostPath:
kerenj3db4be52017-08-24 11:32:22 +000079 path: /dockerdata-nfs/onap/aai/etc/ssl/certs/
Mandeep Khinda71439a72017-06-24 11:49:37 -040080 - name: aai-service-logroot
81 hostPath:
kerenj3db4be52017-08-24 11:32:22 +000082 path: /dockerdata-nfs/onap/aai/opt/aai/logroot/
Mandeep Khinda71439a72017-06-24 11:49:37 -040083 - name: aai-config
84 hostPath:
kerenj3db4be52017-08-24 11:32:22 +000085 path: /dockerdata-nfs/onap/aai/aai-config/
Mandeep Khinda71439a72017-06-24 11:49:37 -040086 - name: aai-data
87 hostPath:
kerenj3db4be52017-08-24 11:32:22 +000088 path: /dockerdata-nfs/onap/aai/aai-data/
Mandeep Khinda71439a72017-06-24 11:49:37 -040089 restartPolicy: Always
Borislav Glozmanfe6dd562017-07-24 10:45:28 +030090 imagePullSecrets:
91 - name: onap-docker-registry-key