> For the complete documentation index, see [llms.txt](https://quantum-computing.gitbook.io/introduction-to-quantum-computing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://quantum-computing.gitbook.io/introduction-to-quantum-computing/k8s-and-jupyterhub/cloud.md).

# Cloud

@youtube [\[ How to Deploy Kubernetes Cluster from Scratch \]](https://www.youtube.com/watch?v=t4H6hdvB9iQ)

@page [\[ Vagrant Housekeeping \]](https://codereviewvideos.com/course/vagrant-with-ansible-and-symfony2/video/vagrant-housekeeping#:~:text=There%20are%20two%20ways%20to,from%20the%20terminal%20in%20Ubuntu.\&text=Which%2C%20as%20the%20command%20would%20imply%2C%20forces%20the%20shutdown%20regardless.)

![thx 2&#x20;
Supergiant ioSupergiant io
](/files/E1lMpjit5TD5mzz4axcM)

try this in virtal env:

<br>

```
sudo sudo apt-get install virtualbox
apt install virtualbox-ext-pack
sudo apt install vagrant
```

with vagrant we can now set up the ubuntu env

lets make a directory:

```
mkdir superUk8s
cd superUk8s
vagrant init ubuntu/xenial64
vagrant up --provider virtualbox
# now we are ready to login
vagrant ssh
sudo -i # we dont wanna write "sudo" each time here
```

```
#LEts update the new ubuntu 
apt update && apt upgrade

```

The first step we have to do now is to install Docker

```
apt install docker.io -y
```

![the acutal state](/files/3enlBuDB9mnjQNvroHau)

```
#Lets get now the kubernetes server file
wget https://dl.k8s.io/v1.20.0/kubernetes-server-linux-amd64.tar.gz
#unpack it 
tar -xzf kubernetes-server-linux-amd64.tar.gz
#Go to the bin folder
cd kubernetes/server/bin
#Move the bins to the main bin directory to have straight access to them
mv kubectl kubelet kube-apiserver kube-controller-manager kube-scheduler kube-proxy /usr/bin/
#Remove the not needed tar file
cd 
rm -rf kubernetes-server-linux-amd64.tar.gz
#and try 
kubectl
#now we make a new directory for the manifest
mkdir -p /etc/kubernetes/manifest
#and make kublet avaible for the system
```

![kubelet](/files/vRtpSbDKKifLvvpxUsXB)

Now it is creating ->

![](/files/S59wPot7EPv5og8JjCLM)
