aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/bash/k8s_setup.sh
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2019-08-08 10:49:20 +0000
committerPeter Mikus <pmikus@cisco.com>2019-08-08 11:41:13 +0000
commit6dc4c63018015d1f84b3c57011bdb2f11e0f1fee (patch)
tree64710ed29c8e1075ba89b7ab2421c17bc5557199 /resources/libraries/bash/k8s_setup.sh
parent8a84f3fca24581424dca6193580cb9f332d100b2 (diff)
Remove: Obsolete bash code
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: Ide17a2e2ae7e1311f00093c14f6c4879406e5868
Diffstat (limited to 'resources/libraries/bash/k8s_setup.sh')
-rwxr-xr-xresources/libraries/bash/k8s_setup.sh15
1 files changed, 3 insertions, 12 deletions
diff --git a/resources/libraries/bash/k8s_setup.sh b/resources/libraries/bash/k8s_setup.sh
index 4128512f21..6ebfeecadd 100755
--- a/resources/libraries/bash/k8s_setup.sh
+++ b/resources/libraries/bash/k8s_setup.sh
@@ -18,19 +18,8 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Include
source ${SCRIPT_DIR}/config/defaults
-source ${SCRIPT_DIR}/shell/dpdk_utils.sh
source ${SCRIPT_DIR}/shell/k8s_utils.sh
-# Read configuration
-while read line
-do
- if echo $line | grep -F = &>/dev/null
- then
- varname=$(echo "$line" | cut -d '=' -f 1)
- cfg[$varname]=$(echo "$line" | cut -d '=' -f 2-)
- fi
-done < ${SCRIPT_DIR}/config/config
-
trap "k8s_utils.destroy" ERR
case "$1" in
@@ -44,7 +33,9 @@ case "$1" in
# Revert any changes made to this host by 'kubeadm init'
k8s_utils.destroy
# Load kernel modules uio/uio_pci_generic
- dpdk_utils.load_modules
+ sudo modprobe uio
+ sudo modprobe uio_pci_generic
+ sudo modprobe vfio_pci
# Sets up the Kubernetes master
k8s_utils.prepare "--pod-network-cidr=192.168.0.0/16"
# Apply resources