basic process.Build the EnvironmentIn the first step, we need to kuberntes the binary executables of each component. The following two ways are available:
Download the source code to compile yourself:
git clone https://github.com/GoogleCloudPlatform/kubernetes.git
CD Kubernetes/build
./release.sh
Directly download the tar file that has been compiled and packaged:
wget https://storage.googl
Kubernetes architecture and component introduction of open-source container Cluster Management System
This article is based on an Infoq article (see the reference section) and has been modified based on your understanding in difficult areas. For more information about deploying kubernetes on Ubuntu, see.
Together we will ensure that Kubernetes is a strong and ope
two more points that need your attention:
Ideally choose a dual-core host with at least 2GB of RAM;
If you can select a custom user name when you configure the host, you will need to choose a custom username to discard the root selection. For example, Civo provides an option for ubuntu,civo or root;
Now perform the following steps on each machine, which may take you 5-10 minutes. If you think this process is too slow, you can also enter the following command to use the utility script I made:
Kubernetes Kubeadm installation requires the following four packages Kubelet Kubernetes-cni Kubeadm kubectl
These four packages can be downloaded via the Https://github.com/kubernetes/kubernetes warehouse to perform make fetch installation packages, and the release version is required if the RPM package is required.
Install CalicoFor the nodes has no Internet access, I downloaded the calico plugin mannual from:https://github.com/projectcalico/calico-kubernetes/releases/tag/v0.6.0Move the plugin to the Kubernetes plugin directory:sudo mv Calico_kubernetes/usr/libexec/kubernetes/kubelet-plugins/net/exec/calico/calicoStart the Calic
This article describes how to quickly deploy a set of kubernetes clusters, so let's get started quickly!
Preparatory work//关闭防火墙systemctl stop firewalld.servicesystemctl disable firewalld.service//关闭selinux,修改/etc/selinux/configSELINUX=disabledMachine Deployment Planning
Host
IP
Deploying Components
Master Master Node
192.168.199.206
ETCD, Kube-apiserver, Kube-controller-manager, Kube-sch
Kubernetes components and role distribution component functions:
-Etcd a highly available k/v key value to the storage and service discovery system-Flannel The communication of the container network of the boast host-Kube-apiserver provides API calls to Kubernetes clusters-Kube-controller-manager ensure Cluster service-Kube-scheduler dispatch container, assign to Node-Kubelet boot container on node
KUBERNETES cluster to build the basic environmentSystem Environment # Cat/etc/redhat-releasecentos Linux release 7.3.1611 (Core)
Host name Settings Centos-master 192.168.59.135centos-minion1 192.168.59.132centos-minion2 192.168.59.133Restart server after SELinux and Firewalld are turned off# systemctl Stop firewalld# systemctl disable firewalld# setenforce 0# sed-i ' s/^selinux=.*/selinux=disableds/'/etc/seli Nux/configMaster Node Installation D
This is a creation in
Article, where the information may have evolved or changed.
The reason why Kubernetes is cool
Objective
When I first learned it Kubernetes (about 1.5 ago?) I really can't find a reason to pay attention to it.
Uttered, I've been using it Kubernetes for almost three months. About why I think it is very useful, with some ideas, although I am st
a specific host.
6. kube-proxy: located on a node. It acts as a Service proxy.
Ii. Installation Steps
PreparationsDisable Firewall
To avoid conflicts with Docker's iptables, We need to disable the firewall on the node:
12
$ systemctl stop firewalld$ systemctl disable firewalldInstall NTP
To keep the time of each server consistent, you also need to install NTP for all servers:
123
$ yum -y install ntp$ syst
Kubernetes, as an important member of the Docker ecosystem, is an open source version of Google's many years of large-scale container management technology, as Urs Hölzle said, whether it is a public cloud or a private cloud or even a hybrid cloud, kubernetes will be used as an application for any The container management framework for any environment is ubiquitous. Because of this, it is now favored by maj
container
Ansible role How to use please read the following article
Ansible Role "How to use?" 】
Cluster installation methodInstall kubernetes ha high availability cluster in static pod mode.Ansible Managing node OperationsOS:CentOS Linux release 7.4.1708 (Core)Ansible2.5.3Installing Ansible# yum -y install ansible# ansible --versionansible 2.5.3 config file = /etc/ansib
This is a creation in
Article, where the information may have evolved or changed.
K8s Offline installation package Three-step installation, simple to unbelievable
Kubeadm Source Code Analysis
To say the truth, Kubeadm code is sincere, the quality is not very high.
A few key points to first talk about some of the core things Kubeadm did:
Kubeadm Generate certificate in/etc/kubernetes/pki directory
Kubeadm generate a static pod Yaml configurati
Service discovery mechanism Kubernetes provides two ways to discover the service:1. Environment Variables When the pod is running, Kubernetes writes the information for the service that existed before This method requires that the pod must be started after the service. The pod that was started before the service will not have an environment variable for that service. There is no such limit in the way
1. Preface
Together we'll ensure that Kubernetes are a strong and open container management framework for all application and in any Environment, whether in a private, public or hybrid cloud.
Urs Hölzle, GoogleAs an important member of the Docker ecosystem, Kubernetes is an open source version of Google's large-scale container management technology for many years, and is the best practice for
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.