How Do You Deploy a Kubernetes Cluster to Azure?

Problem scenario
You want to deploy a Kubernetes cluster to Azure.  You have an Ubuntu Linux server (e.g., with a nano flavor in AWS, a server on-premises, or an one vCPU Azure server with one GB of RAM).  It has no software packages installed on it (e.g., it does not have Docker or Kubernetes).  How do you deploy Kubernetes into Azure (from an instance in AWS)?

Solution
Warning: 

How Do You Install kubectl, kubeadm, and kubelet on a CentOS/RHEL/Fedora Server?

Problem scenario
You have a Red Hat derivative distribution of Linux.  You want to use some core Kubernetes utilities.  How do you install kubectl, kubeadm, and kubelet on Linux?

Solution
1.  Create a file /etc/yum.repos.d/kubernetes.repo2.  Have this be the content:

[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg

2.  Run this: sudo yum -y install kubelet kubeadm kubectl

How Can You Learn about Kubernetes in One Hour?

Problem scenario
You need to learn more about Kubernetes but do not know where to start.  You have roughly one hour to try to know much more about Kubernetes.  What should you do?

Solution
For an introduction to Kubernetes, see these two articles from Linux.com and TechTarget.

This DigitalOcean article is a little out of date (as of 9/18/17),

How Do You Install Kubernetes on an AWS Instance of RedHat Linux?

Problem scenario:  You are using RHEL 7.x via AWS.  You want to install Kubernetes.  What do you do?

Solution
1.  Log into the Linux server as ec2-user.  Then run this command:
sudo yum-config-manager –enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional

2.  Create this file: /etc/yum.repos.d/kubernetes.repo
3.  Have this be the content of the file (with the first line being “[kubernetes]” and the last line ending in “…

How Do You Deploy a Kubernetes Cluster in AWS Using an Ubuntu Linux Instance?

Updated on 10/13/20.

Problem scenario
You want to deploy a Kubernetes cluster in AWS.  You have an Ubuntu server (e.g., with a nano flavor in AWS or a minimally powered Azure instance).  It has no software packages installed on it (e.g., it does not have Docker or Kubernetes).  How do you deploy Kubernetes in AWS?

Solution
Warning:  This will automatically create EC2 servers in you AWS account behind the scenes.