> 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)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://quantum-computing.gitbook.io/introduction-to-quantum-computing/k8s-and-jupyterhub/cloud.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
