blob: e18fcf20d74315122b2c2b282b2d6dbea8a842f3 [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 ],
36 "image": "oomk8s/readiness-check:1.0.0",
37 "imagePullPolicy": "Always",
38 "name": "aai-resources-readiness"
39 }
40 ]'
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
57 volumeMounts:
Mandeep Khindac432f862017-09-01 02:15:17 +000058 - mountPath: /opt/aai/logroot/
Mandeep Khindafc068432017-08-30 14:24:02 +000059 name: aai-resources-logs
Mandeep Khindafc068432017-08-30 14:24:02 +000060 - mountPath: /var/chef/aai-data/
61 name: aai-data
Mandeep Khindac432f862017-09-01 02:15:17 +000062 - mountPath: /docker-entrypoint.sh
63 name: entrypoint-override
Mandeep Khindafc068432017-08-30 14:24:02 +000064 ports:
65 - containerPort: 8447
66 readinessProbe:
67 tcpSocket:
68 port: 8447
69 initialDelaySeconds: 5
70 periodSeconds: 10
71 volumes:
72 - name: aai-resources-logs
73 hostPath:
74 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-resources/logs/"
Mandeep Khindafc068432017-08-30 14:24:02 +000075 - name: aai-data
76 hostPath:
77 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-data/"
Mandeep Khindac432f862017-09-01 02:15:17 +000078 - name: entrypoint-override
79 hostPath:
80 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-resources/docker-entrypoint.sh"
Mandeep Khindafc068432017-08-30 14:24:02 +000081 restartPolicy: Always
82 imagePullSecrets:
83 - name: "{{ .Values.nsPrefix }}-docker-registry-key"