aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/scripts/k8s/kubernetes_run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sdc-os-chef/scripts/k8s/kubernetes_run.sh')
-rw-r--r--sdc-os-chef/scripts/k8s/kubernetes_run.sh23
1 files changed, 21 insertions, 2 deletions
diff --git a/sdc-os-chef/scripts/k8s/kubernetes_run.sh b/sdc-os-chef/scripts/k8s/kubernetes_run.sh
index fd9de2e181..7a73c2af3b 100644
--- a/sdc-os-chef/scripts/k8s/kubernetes_run.sh
+++ b/sdc-os-chef/scripts/k8s/kubernetes_run.sh
@@ -52,8 +52,18 @@ status $?
print_header "Dependency - Install ..."
echo "[INFO] Install - nsenter"
# Use pre compiled nsenter:
-sudo cp bin/nsenter /usr/local/bin/nsenter
-sudo cp etc/bash_completion.d/nsenter /etc/bash_completion.d/nsenter
+if [ -f bin_nsenter ]; then
+ sudo cp bin_nsenter /usr/local/bin/nsenter
+else
+ echo "[ERROR] File [bin_nsenter] is missing"
+fi
+
+if [ -f etc_nsenter ]; then
+ sudo cp etc_nsenter /etc/bash_completion.d/nsenter
+else
+ echo "[ERROR] File [etc_nsenter] is missing"
+fi
+
## In order to build the nsenter use the below instructions:
##./build_nsenter_exec.sh
@@ -75,3 +85,12 @@ print_header "SDC - Deploy Pods ..."
sh ./deploy_k8s_sdc.sh
status $?
+
+####################
+# SDC LOGS Tree #
+####################
+print_header "SDC - Deploy Pods ..."
+mkdir -p /dockerdata-nfs/onap/sdc/logs//BE/SDC/SDC-BE
+mkdir -p /dockerdata-nfs/onap/sdc/logs/FE/SDC/SDC-FE
+mkdir -p /dockerdata-nfs/onap/sdc/logs/ONBOARD/SDC/ONBOARD-BE
+chmod -R 777 /dockerdata-nfs/onap/sdc/logs/*