summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdc/templates/sdc-be.yaml
diff options
context:
space:
mode:
authorMandeep Khinda <mandeep.khinda@amdocs.com>2017-10-13 17:54:20 +0000
committerMandeep Khinda <mandeep.khinda@amdocs.com>2017-10-13 18:04:59 +0000
commit11982f730eac0b01f883c5d718428ae26c28ce69 (patch)
treefef4953b2046867055251df58379df3172c88107 /kubernetes/sdc/templates/sdc-be.yaml
parent375eecf9665675e3321d76a9bef998535d0cdad3 (diff)
fixing SDC logback mounting defect
sdc-be now starts and robot passes healthcheck ---------------------------------------- Basic ASDC Health Check | PASS | ---------------------------------------- Note that I did not verify whether the logging function is working - priority for this issue is to get SDC running. Issue-ID: OOM-359 Change-Id: Ic810109878aa003c54350a6e70a4aeeea9b2f0ea Signed-off-by: Mandeep Khinda <mandeep.khinda@amdocs.com>
Diffstat (limited to 'kubernetes/sdc/templates/sdc-be.yaml')
-rw-r--r--kubernetes/sdc/templates/sdc-be.yaml6
1 files changed, 5 insertions, 1 deletions
diff --git a/kubernetes/sdc/templates/sdc-be.yaml b/kubernetes/sdc/templates/sdc-be.yaml
index 29f029f9ed..0ba4db50ce 100644
--- a/kubernetes/sdc/templates/sdc-be.yaml
+++ b/kubernetes/sdc/templates/sdc-be.yaml
@@ -86,8 +86,12 @@ spec:
name: sdc-logs
- mountPath: /var/log/onap
name: sdc-logs-2
- - mountPath: /var/lib/jetty/config/catalog-be/logback.xml
+ - mountPath: /tmp/logback.xml
name: sdc-logback
+ lifecycle:
+ postStart:
+ exec:
+ command: ["/bin/sh", "-c", "export LOG=wait_logback.log; touch $LOG; export SRC=/tmp/logback.xml; export DST=/var/lib/jetty/config/catalog-be/; while [ ! -e $DST ]; do echo 'Waiting for $DST...' >> $LOG; sleep 5; done; sleep 2; /bin/cp -f $SRC $DST; echo 'Done' >> $LOG"]
ports:
- containerPort: 8443
- containerPort: 8080