SELinux needs to be set to permissive mode, which effectively disables its security functions. The containers need to access the host filesystem. This ensures that packets are properly processed by IP tables during filtering and port forwarding. Set the -nf-call-iptables to '1' in your sysctl config file. Sudo firewall-cmd -permanent -add-port=10255/tcpĮach time a port is added the system confirms with a ‘success’ message.Įnter the following commands on each worker node: sudo firewall-cmd -permanent -add-port=10251/tcp Sudo firewall-cmd -permanent -add-port=10252/tcp Sudo firewall-cmd -permanent -add-port=10251/tcp Sudo firewall-cmd -permanent -add-port=10250/tcp Sudo firewall-cmd -permanent -add-port=2379-2380/tcp On the Master Node enter: sudo firewall-cmd -permanent -add-port=6443/tcp Add the following ports by entering the listed commands. Firewalld is enabled in CentOS by default on the front-end. The nodes, containers, and pods need to be able to communicate across the cluster to perform their functions. Make a host entry or DNS record to resolve the hostname for all nodes: sudo vi /etc/hosts In this example, the master node is now named master-node, while a worker node is named worker-node1. Or sudo hostnamectl set-hostname worker-node1 To give a unique hostname to each of your nodes, use this command: sudo hostnamectl set-hostname master-node cat /etc//kubernetes.repoīefore deploying a cluster, make sure to set hostnames, configure the firewall, and kernel settings. Enter the following command to retrieve the Kubernetes repositories. This step needs to be performed on the Master Node, and each Worker Node you plan on utilizing for your container setup. Kubernetes packages are not available from official CentOS 7 repositories. Docker needs to be installed on CentOS, both on the Master Node and the Worker Nodes. Currently, the most popular container solution is Docker.
Dragon medical one step by step commands install#
To use Kubernetes, you need to install a containerization engine. Steps for Installing Kubernetes on CentOS 7 The yum package manager, included by default.