1. Introduction
This book provides instructions for installing Kubernetes on a single node (for standalone environment). A standalone environment can be used for development and evaluation using Kubernetes.
For the installation procedure of cluster environment including production environment, Kubernetes install guide.
2. Requirements
Red Hat Enterprise Linux 7 or CentOS 7 is required. An Internet connection is also required.
For more details, see "Requirements" section of Kubernetes install guide.
3. Installation Instructions
3.1. Download the installer
Use k8s-installer
as an installer.
Download the installer from "Releases" of https://github.com/k8s-installer/k8s-installer.
3.2. Configuration
Extract the installer and cd to the script
directory.
Copy config.sample.sh to config.sh as follows.
$ cp config.sample.sh config.sh config.sh
Only if you need a proxy to connect to the Internet, you need to edit the config.sh with editor.
Set the URL of the proxy server into PROXY_URL
, and set hostname/IP addresses do not use proxy server to NO_PROXY
separated by commas.
The IP address of this host must be set to NO_PROXY
.
Example:
...
PROXY_URL=http://proxy.example.com:8080
NO_PROXY=localhost,127.0.0.1,10.0.1.2
...
3.3. Install
Follow the steps below to perform the installation.
$ sudo ./install-common.sh
$ sudo ./install-master-single.sh
$ ./install-kubeconfig.sh
$ ./install-cni.sh
3.4. Installation check
After the installation is complete, run kubectl get nodes
to make sure that the node is ready.
Also, run kubectl get all -n kube-system
and make sure that all the Pods are running normally.