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