blob: c874e399952643b91bf14322e440ee7084adf9b2 [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 ],
yuryn4c6a50e2017-09-04 16:42:08 +030036 "image": "{{ .Values.image.readiness }}",
37 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindac432f862017-09-01 02:15:17 +000038 "name": "aai-resources-readiness"
39 }
Mike Elliott47e76d02017-09-22 11:31:54 -040040 ]'
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:
yurync400bf52017-09-13 19:21:03 +030058 - mountPath: /etc/localtime
59 name: localtime
60 readOnly: true
Mandeep Khindac432f862017-09-01 02:15:17 +000061 - mountPath: /opt/aai/logroot/
Mandeep Khindafc068432017-08-30 14:24:02 +000062 name: aai-resources-logs
Mandeep Khindafc068432017-08-30 14:24:02 +000063 - mountPath: /var/chef/aai-data/
64 name: aai-data
65 ports:
66 - containerPort: 8447
67 readinessProbe:
68 tcpSocket:
69 port: 8447
70 initialDelaySeconds: 5
71 periodSeconds: 10
72 volumes:
yurync400bf52017-09-13 19:21:03 +030073 - name: localtime
74 hostPath:
75 path: /etc/localtime
Mandeep Khindafc068432017-08-30 14:24:02 +000076 - name: aai-resources-logs
77 hostPath:
78 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-resources/logs/"
Mandeep Khindafc068432017-08-30 14:24:02 +000079 - name: aai-data
80 hostPath:
81 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-data/"
Mandeep Khindafc068432017-08-30 14:24:02 +000082 restartPolicy: Always
83 imagePullSecrets:
84 - name: "{{ .Values.nsPrefix }}-docker-registry-key"