Kubernetes can be deployed on the Bare Metal Fedora or Ubuntu machines. Even the Fedora and Ubuntu virtual machine can be deployed in vSphere, workstation, or VirtualBox. For the following tutorial, we'll be looking at Kubernetes deployment on a single Fedora 24 machine, which will be acting as master, as well as node to deploy k8s
pods:
Enable the Kubernetes testing YUM repository:
yum -y install --enablerepo=updates-testing kubernetes
Install
etcd
andiptables-services
:yum -y install etcd iptables-services
In
/etcd/hosts
, set the Fedora master and Fedora node:echo "192.168.121.9 fed-master 192.168.121.65 fed-node" >> /etc/hosts
Disable the firewall and
iptables-services
:systemctl disable iptables-services firewalld systemctl stop iptables-services firewalld
Edit the
/etcd/kubernetes/config
file:# Comma separated list of nodes in the etcd cluster KUBE_MASTER...