Setting Up Kubernetes Cluster Generating Master Configuration Files # cat < /etc/systemd/system//nfĮnvironment="KUBELET_CGROUP_ARGS=-cgroup-driver=cgroupfs" # sed -i 's/SELINUX=permissive/SELINUX=disabled/' /etc/sysconfig/selinuxĮdit /etc/hosts file to contain the following:Ĭhange the content of /etc/systemd/system/rvice to the followingĭescription=Docker Application Container EngineĮxecStartPost=/sbin/iptables -I FORWARD -s 0.0.0.0/0 -j ACCEPTĮnable Docker service and reload configuration by running the following commands You need to perform the following task on all servers 1. There are a few things to be done to get the servers ready. Operating System on them is CentOS7 with root user enabled.
#Install kubernetes cluster multi master software#
- All servers must have Internet access in order to download software packages.
- Each server has at least 2 CPU/vCPU cours, 4GB RAM and 10GB disk space.
- The servers could be bare-metal servers or virtual servers. Here is the server inventory and architecture Server Name Our deployment consists of the following components: Kubernetes, Etcd, Docker, Flannel, Helm and Nginx-ingress-controller. Kubernetes cluster is highly configurable.
You can choose to different IPs according to your own network environment. The other two will be worker nodes and have the IPs 192.168.100.40 and 192.168.100.50, 192.168.100.60 is used as a virtual IP for Master services. Our example cluster consists of 5 servers in an internal network 192.168.100.0/24.
You can refer to it if you prefer Ubuntu as your Operating System. We have another article for setting up Kubernetes on Ubuntu16.04 servers.
#Install kubernetes cluster multi master how to#
This article demonstrate how to create a simple Kubernetes cluster on CentOS7, which is able to pass Kubernetes Conformance tests, using Kubeadm. It greatly simplified Kubernetes deployment process. Kubernetes community created a tool named Kubeadm for this purpose. Sometimes you want a Kubernetes cluster to test an application or to create a development environment quickly and easily. It’s used to manage the whole life of containerized applications, including deployment, scaling, upgrading etc.
Kubernetes is one of the most popular open source container orchestration systems.