Kubernetes Introduction
Monolithic Architecture
Micro Services Architecture
Monolithic Vs. Micro Services Architecture
Containers Overview
Container Orchestration Engines
Managed Kubernetes Services
Kubernetes Architecture
Kubernetes Cluster Setup
POD Management
Replication Controller
ReplicaSet Controller
Deployment Controller
Kubernetes Services
Configure aws-provider on kubernetes cluster
Load Balancer service on Kubernetes
116 Followers
This article provides step by step approach how to install and configure 3 node Kubernetes cluster on Amazon EC2 RPM based instances.
OS Requirements
Master and Worker nodes must be running with any one of the below Operating Systems:
Hardware Requirements
OS Configuration
# swapoff -a
[root@ ~]$setenforce 0
setenforce: SELinux is disabled
[root@ ~]$
# sudo sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config
# service iptables stop
If IP TABLES are enabled then configure IP tables to see bridged traffic
# modprobe br_netfilter
# cat <<EOF | sudo tee /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
EOF
# sudo sysctl --system
[root@ ~]$ifconfig | grep ether
ether 06:b5:b0:04:34:45 txqueuelen 1000 (Ethernet)
[root@ ~]$
[root@ ~]$cat /sys/class/dmi/id/product_uuid
EC2D3281-B316-79C1-CB8E-79BC63D66FDC
[root@ ~]$
Network Configuration
Ensure below ports are open on Master and Worker nodes.
Control-Plane Node (Master Node)
Worker Node
Required below packages installed in all nodes( master and worker nodes).
Master:
Worker Node:
Configure Kubernetes Repo:
1. Run below command to add Kubernetes Repo to the yum repo.
# cat <<EOF | sudo tee /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-\$basearch
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
exclude=kubelet kubeadm kubectl
EOF
2. Run below command to install Packages
# yum install docker kubeadm kubectl kubelet --disableexcludes=kubernetes
Enable Services to start after reboot
[root@ ~]$chkconfig docker on
Note: Forwarding request to 'systemctl enable docker.service'.
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
[root@ ~]$chkconfig kubelet on
Note: Forwarding request to 'systemctl enable kubelet.service'.
Created symlink from /etc/systemd/system/multi-user.target.wants/kubelet.service to /usr/lib/systemd/system/kubelet.service.
[root@ ~]$
Start Docker RunTime
[root@ ~]$ service docker start