summaryrefslogtreecommitdiffstats
path: root/templates/aai-resources-deployment.yaml
diff options
context:
space:
mode:
authorMandeep Khinda <mandeep.khinda@amdocs.com>2017-09-01 02:15:17 +0000
committerMandeep Khinda <mandeep.khinda@amdocs.com>2017-09-01 02:15:17 +0000
commitc432f86329cd6caa0e26dbe8a2752b3be2aefd48 (patch)
treee1e78403dc0c3d27f5bbad55da12ef8e6a36e488 /templates/aai-resources-deployment.yaml
parentfc06843193d4ec0762f2060a632840d5ae1ec9f7 (diff)
getting traversal, resources, & gremlin to boot
- reverted some log dir changes that cause chef to complain about pre-existing directories - had to fork and modify docker-entrypoint for both resources and traversal to avoid git clone of aai-data - updated gremlin hostname so that container comes up... was complaining about failure to bind to port 8182 Issue-ID: OOM-65 Change-Id: I84d2647af588e39502a075880a163104bb39540e Signed-off-by: Mandeep Khinda <mandeep.khinda@amdocs.com> Signed-off-by: yuryn <Yury.Novitsky@Amdocs.com>
Diffstat (limited to 'templates/aai-resources-deployment.yaml')
-rw-r--r--templates/aai-resources-deployment.yaml38
1 files changed, 32 insertions, 6 deletions
diff --git a/templates/aai-resources-deployment.yaml b/templates/aai-resources-deployment.yaml
index b6242ee..e18fcf2 100644
--- a/templates/aai-resources-deployment.yaml
+++ b/templates/aai-resources-deployment.yaml
@@ -12,6 +12,32 @@ spec:
labels:
app: aai-resources
name: aai-resources
+ annotations:
+ pod.beta.kubernetes.io/init-containers: '[
+ {
+ "args": [
+ "--container-name",
+ "hbase"
+ ],
+ "command": [
+ "/root/ready.py"
+ ],
+ "env": [
+ {
+ "name": "NAMESPACE",
+ "valueFrom": {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "metadata.namespace"
+ }
+ }
+ }
+ ],
+ "image": "oomk8s/readiness-check:1.0.0",
+ "imagePullPolicy": "Always",
+ "name": "aai-resources-readiness"
+ }
+ ]'
spec:
containers:
- name: aai-resources
@@ -29,12 +55,12 @@ spec:
- name: CHEF_GIT_URL
value: http://gerrit.onap.org/r/aai
volumeMounts:
- - mountPath: /opt/aai/logroot/AAI-RES/
+ - mountPath: /opt/aai/logroot/
name: aai-resources-logs
- - mountPath: /var/chef/aai-config/
- name: aai-config
- mountPath: /var/chef/aai-data/
name: aai-data
+ - mountPath: /docker-entrypoint.sh
+ name: entrypoint-override
ports:
- containerPort: 8447
readinessProbe:
@@ -46,12 +72,12 @@ spec:
- name: aai-resources-logs
hostPath:
path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-resources/logs/"
- - name: aai-config
- hostPath:
- path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-config/"
- name: aai-data
hostPath:
path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-data/"
+ - name: entrypoint-override
+ hostPath:
+ path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-resources/docker-entrypoint.sh"
restartPolicy: Always
imagePullSecrets:
- name: "{{ .Values.nsPrefix }}-docker-registry-key"