First steps with Apache Spark on K8s (part #1): preparation of environment

All scripts from this article can be found at: github.com/domasjautakis/docker-minikube
#1.yum install dnf -y
yum install dnf-plugins-core -y
yum install wget -y
yum install java-11-openjdk-devel -y
yum install git -y
#2.adduser minikubeuser
passwd minikubeuser
#**New password:
usermod -aG wheel minikubeuser
su - minikubeuser
  • will add dnf repo
  • install docker
  • start the service
  • add firewall masquerade
  • will change mode for docker.sock
#3.sudo dnf update -y
sudo setenforce 0
sudo sed -i --follow-symlinks 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux
sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
sudo dnf install docker-ce -y
sudo systemctl start docker
sudo systemctl enable docker
sudo firewall-cmd --zone=public --add-masquerade --permanent
sudo firewall-cmd --reload
sudo chmod 666 /var/run/docker.sock
docker ps --no-trunc
docker image ls
#4.sudo dnf install conntrack -y
#5.curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
chmod +x minikube
sudo mkdir -p /usr/local/bin/
sudo install minikube /usr/local/bin/
#6.minikube start --driver=none
minikube status
#7.minikube addons list
minikube addons enable metrics-server
minikube addons list
#8.curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store