The 2nd edition of the authoritative Guide to Kubernetes Learning (ii) a simple example

Source: Internet
Author: User
Tags etcd

1: Install VirtualBox, and download Centos-7-x86_64-dvd-1708.iso, install CENTOS7, the specific process can be Baidu.

2: Start the CentOS ssh with the following steps:

(1) Yum List installed | grep openssh-server See if SSH is already installed and if not installed, enter yum install Openssh-server

(2) Vim/etc/ssh/sshd_config,

Open the listening port and listening address:

Allow remote logins:

Turn on use user name password to authenticate as connection

(3) SSH service enabled: sudo service sshd start

Check if the SSHD service is turned on, enter PS-E | grep sshd

or enter Netstat-an | grep 22 Check if Port 22nd is open for monitoring

(4) Ifconfig View the CentOS address, ensure that the host can ping, if not, you need to configure the network type of CentOS:

3:kubernetes installation and related image download

(1) Turn off CentOS pre-fire Service

Systemctl Disable FIREWALLD

SYSTEMTL Stop Firewalld

(2) Install ETCD and kubernetes software (Docker software will be installed automatically)

Yum install-y Etcd kubernetes

(3) After installation, modify the two configuration files:

The Docker configuration file is/etc/sysconfig/docker, where the options content is set to:

Options= '--selinux-enabled=false--insecure-registry gcr.io '

Kubernetes apiserver configuration file is/etc/kubernetes/apiserver:

Remove the ServiceAccount from the--admission_control parameter.

(4) Start all services sequentially:

Systemctl Start ETCD

Systemctl Start Docker

Systemctl Start Kube-apiserver

Systemctl Start Kube-controller-manager

Systemctl Start Kube-scheduler

Systemctl Start Kubelet

Systemctl Start Kube-proxy

Here, a stand-alone version of the Kubernetes cluster environment is installed.

The 2nd edition of the authoritative Guide to Kubernetes Learning (ii) a simple example

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.