Skip to content

Instantly share code, notes, and snippets.

@KhalidCK
Last active September 5, 2020 06:33
Show Gist options
  • Save KhalidCK/30952094f0a07c66ab4bb47f0995ae49 to your computer and use it in GitHub Desktop.
Save KhalidCK/30952094f0a07c66ab4bb47f0995ae49 to your computer and use it in GitHub Desktop.
setup lab minkube with jupyterhub
# Install helm
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
helm repo add jupyterhub https://jupyterhub.github.io/helm-chart/
helm repo update
# Deploy jupyterhub
RELEASE=jhub
NAMESPACE=default
helm upgrade --install $RELEASE jupyterhub/jupyterhub \
--namespace $NAMESPACE \
--version=0.9.0 \
--values config.yaml
#! /bin/bash -e
#NOTE: insecure script mainly for test/lab purpose
#docker
curl https://get.docker.com | bash
#minkube
yum install -y conntrack
yum install -y socat
curl -LO https://github.com/kubernetes/minikube/releases/download/v1.12.3/minikube-latest.x86_64.rpm
sudo rpm -ivh minikube-latest.x86_64.rpm
# Install helm
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
#kubectl
#minikube kubectl -- get po -A
#! /bin/bash
#dep for minikube
apt-get update
apt-get -y install conntrack
#install minikube
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube
mkdir -p /usr/local/bin/
install minikube /usr/local/bin/
apt-get update
#install docker
apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get install docker-ce docker-ce-cli containerd.io
#install kubectl
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.19.0/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment