Vocal Considerations

The answers that I usually hear are: ‘I’ve used it more than I can count,’ and ‘I’ve only thought about it during a moment of sickness, when I couldn’t speak.’ It is through our voice that we…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Creating a Kubernetes Cluster in Azure using Kubeadm

The first thing that we need to do is create 3 VMs. The first one will act as the master node and the other two will be the minions. We will use Ubuntu 18.04 as the operating system and place all our VMs in a single VNet. This is not a production ready configuration — for production you might want to create multiple master nodes. Also for production you don’t want to give public access to your worker nodes.

Now we are ready to get started. The first step is to install docker and kubeadm on all of the nodes. We are going to ssh into all nodes all run the same set of commands.

Now that kubeadm has been setup the next thing we’re going to do is initialize kubeadm. We will need to run the init script on the master.

Once the command successfully runs it will output the join command which we will then need to run on the minions. We’ll copy the join command for now — we’ll need it in a future step.

Now, we will have to copy the admin.conf file so that we can run the kubectl command as a regular user (as opposed to root) from the master. The admin.conf file contains information such as the user, cert, etc needed to for kubectl to connect to your cluster.

Now we will run the join command on the worker nodes

You should get an output saying This node has joined the cluster.

Once the pods are running we can now go ahead and deploy a test application

To test out the service we will need to open up the NSG for that port. In my case the NodePort for the service was 30767

Now if you hit the URL http://<master>.eastus.cloudapp.azure.com:30767 you should see the familiar “Welcome to Nginx” page.

With this you should have a working, self-managed Kubernetes cluster running on Azure.

Add a comment

Related posts:

Please! Adopt This Harry Potter Owl!

A Feathery Poem by Russ Cooper. “Please! Adopt This Harry Potter Owl!” is published by Russ Cooper.

I Was Dreaming

I was dreaming. What if I climbed to the clouds? What would I find? I was thinking. What if I left the road behind? Where would it take me? Someplace so familiar, yet so unfamiliar. Still anchored to…

Buy New Gmail Account

Buy Gmail Accounts from us. Gmail is the hottest email service in the world. One in each of the numerous communications supplier websites is one in every one of them. This service provides Google…