From 025a307b77195cfa00af3fc570c06934e59b4e41 Mon Sep 17 00:00:00 2001 From: Pierre Oblin Date: Wed, 19 May 2021 12:50:45 -0400 Subject: [PATCH] mount --make-rshared / fixes issue #41 --- jobs/k3s-agent/templates/bin/pre-start.erb | 2 ++ jobs/k3s-server/templates/bin/pre-start.erb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/jobs/k3s-agent/templates/bin/pre-start.erb b/jobs/k3s-agent/templates/bin/pre-start.erb index 3f697b3e..a9af3906 100644 --- a/jobs/k3s-agent/templates/bin/pre-start.erb +++ b/jobs/k3s-agent/templates/bin/pre-start.erb @@ -6,4 +6,6 @@ mkdir -p /etc mkdir -p /var/vcap/store/k3s-node/etc/rancher ln -sf /var/vcap/store/k3s-node/etc/rancher /etc/rancher +mount --make-rshared / + exit 0 diff --git a/jobs/k3s-server/templates/bin/pre-start.erb b/jobs/k3s-server/templates/bin/pre-start.erb index c655a535..4990c272 100644 --- a/jobs/k3s-server/templates/bin/pre-start.erb +++ b/jobs/k3s-server/templates/bin/pre-start.erb @@ -19,4 +19,6 @@ chmod go-r /var/vcap/jobs/k3s-server/config/datastore-* mkdir -p /var/vcap/store/k3s-server/ cp -f $JOB_DIR/config/additional-manifest.yaml /var/vcap/store/k3s-server/server/manifests/additional-manifest.yaml +mount --make-rshared / + exit 0