Executing modprobe in agent pod

Fixes https://github.com/rook/rook/issues/1062
This commit is contained in:
Steve Leon committed 2017-10-12 14:44:26 -07:00
1 parent 642671604b
commit e290cee720
10 files changed
+117 -31

No files matched your search

-1
View File
@@ -15,7 +15,6 @@ then
sudo mkdir -p /usr/libexec/kubernetes/kubelet-plugins/volume/exec/rook.io~rook
cat << EOF | sudo tee -a /usr/libexec/kubernetes/kubelet-plugins/volume/exec/rook.io~rook/rook
#!/bin/bash
modprobe rbd single_major=Y > /dev/null
echo -ne '{"status": "Success", "capabilities": {"attach": false}}' >&1
exit 0
EOF
-3
View File
@@ -141,9 +141,6 @@ case "${1:-}" in
exit 1
;;
esac
sudo cp ${scriptdir}/kubeadm-rbd /bin/rbd
sudo chmod +x /bin/rbd
docker pull ceph/base || true
;;
wait)
if [ "$#" -eq 2 ]; then
-1
View File
@@ -6,7 +6,6 @@ source "${scriptdir}/../../build/common.sh"
init_flexvolume() {
cat <<EOF | ssh -i `minikube ssh-key` docker@`minikube ip` -o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=quiet 'cat - > ~/rook'
#!/bin/bash
modprobe rbd single_major=Y > /dev/null
echo -ne '{"status": "Success", "capabilities": {"attach": false}}' >&1
exit 0
EOF