The following Vagrantfile code(syntax is Ruby) is creating single node Kubernetes cluster with Minikube.
Copy above code and follow the following screenshots. Run the following commands in Terminal.
Paste the Vagrantfile content like below.
save Vagrantfile and run the following command to start virtual machine.
Creating Kubernetes Dashboard Proxy
After Vagrant is up, it means that Minikube is ready to use. So, connect with SSH to Vagrant machine and run the following code to start Kubernetes Dashboard Proxy.
kubectl proxy --address 0.0.0.0 --port=8001 --accept-hosts '.*'
Connecting to Kubernetes Dashboard from Host machine
Click one of the following link to connect the Dashboard. Ta taaa 🙂
Rest of the details are already mentioned in this blog link Kubernetes multi node cluster with Vagrant (included Kubernetes Dashboards, Grafana, Prometheus)
read the Kubernetes Dashboard Access Control paragraph.
It is a very simple example to show how to handle long-running requests in Node.js with RabbitMQ.
You need to have a RabbitMQ docker in development machine.
Install RabbitMQ with Docker
if you have installed Vagrant CLI, just run the following command to create docker installed virtual box.
The following command will download a Vagrantfile file from Vagrant company in the current directory.
vagrant init kenanhancer/DockerMachine
This command will start the virtual machine.
If you want to check status of virtual machine, run the following command.
If you want to see ports of virtual machine, run the following command.
to connect created virtual machine, run the following command in the Vagrantfile directory.
if you want to see details of Vagrantfile, check it as below.
Creating a Vagrant Package file
vagrant package --output dockermachine.box --vagrantfile Vagrantfile
The following Vagrantfile code(syntax is Ruby) is creating one master node and two worker nodes for Kubernetes.
Go to Vagrantfile directory in Terminal and run the following code to create virtual machines.
As you can see in the below picture, three virtual machines are obtained and running.
But, Kubernetes cluester is still not ready. We created just an environment to install the cluster.
Before you run the following C# code, run the below docker code to have a RabbitMQ applicaton locally.
docker run -d –hostname my-rabbit –name some-rabbit -p 8080:15672 -p 5672:5672 rabbitmq:3-management
After run Docker RabbitMQ container, you can reach from http://localhost:8080/ as shown in following picture.