Posts

Showing posts from March, 2019

Kubernetes 101: Creating a single master cluster with kubeadm

Install Kubernetes on single node using kubeadm Set Host name : [root@crio ~]# cat /etc/hosts 192.168.17.17   crio  crio.cloud.local Disable SELinux: [root@crio ~]# setenforce 0 [root@crio ~]# sed -i --follow-symlinks 's/^SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux Disable Firewall: [root@crio ~]# systemctl disable firewalld && systemctl stop firewalld Disable swap: [root@crio ~]# sed -i '/swap/d' /etc/fstab && swapoff -a Update sysctl settings for Kubernetes networking: [root@crio ~]# cat >>/etc/sysctl.d/kubernetes.conf<<EOF net.bridge.bridge-nf-call-ip6tables = 1 net.bridge.bridge-nf-call-iptables = 1 EOF [root@crio ~]# sysctl --system Add yum repository: [root@crio ~]# cat >>/etc/yum.repos.d/kubernetes.repo<<EOF [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.