We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c677799 commit 3c53692Copy full SHA for 3c53692
1 file changed
samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu/setup-k8s-prereqs.sh
@@ -2,10 +2,9 @@
2
3
# Setup the kubernetes preprequisites
4
#
5
-sudo -i
6
echo $(hostname -i) $(hostname) >> /etc/hosts
7
-sed -i "/ swap / s/^/#/" /etc/fstab
8
-swapoff -a
+sudo sed -i "/ swap / s/^/#/" /etc/fstab
+sudo swapoff -a
9
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
10
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
11
deb http://apt.kubernetes.io/ kubernetes-xenial main
0 commit comments