summaryrefslogtreecommitdiffstats
path: root/kubernetes/aai/templates/aai-traversal-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
commit76092d6462ccbdd37a46071fa87804e9c9afdcd3 (patch)
tree4cf52a03582ebe0f8d46afa147f5026d46748435 /kubernetes/aai/templates/aai-traversal-deployment.yaml
parent9cd2211545b7a7cf00cef892ceb4fa00b6cfc46a (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 'kubernetes/aai/templates/aai-traversal-deployment.yaml')
-rw-r--r--kubernetes/aai/templates/aai-traversal-deployment.yaml40
1 files changed, 34 insertions, 6 deletions
diff --git a/kubernetes/aai/templates/aai-traversal-deployment.yaml b/kubernetes/aai/templates/aai-traversal-deployment.yaml
index cb56be8fd9..59ea7bad4d 100644
--- a/kubernetes/aai/templates/aai-traversal-deployment.yaml
+++ b/kubernetes/aai/templates/aai-traversal-deployment.yaml
@@ -12,6 +12,34 @@ spec:
labels:
app: aai-traversal
name: aai-traversal
+ annotations:
+ pod.beta.kubernetes.io/init-containers: '[
+ {
+ "args": [
+ "--container-name",
+ "hbase",
+ "--container-name",
+ "aai-resources"
+ ],
+ "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-traversal-readiness"
+ }
+ ]'
spec:
containers:
- name: aai-traversal
@@ -29,12 +57,12 @@ spec:
- name: CHEF_GIT_URL
value: http://gerrit.onap.org/r/aai
volumeMounts:
- - mountPath: /opt/aai/logroot/AAI-GQ/
+ - mountPath: /opt/aai/logroot/
name: aai-traversal-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: 8446
readinessProbe:
@@ -46,12 +74,12 @@ spec:
- name: aai-traversal-logs
hostPath:
path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-traversal/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-traversal/docker-entrypoint.sh"
restartPolicy: Always
imagePullSecrets:
- name: "{{ .Values.nsPrefix }}-docker-registry-key"