Kubernetes Installation Brief Tutorial

Source: Internet
Author: User

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 kubernetes Environment

Install Management node

Kubeadmin init–api-advertise-addresses [admin node IP]

This step will generate a token to use when the work node joins.

Kubernetes all components run in Kubernetes in POD, the following mirrors are ready for installation during installation, the specific version number will vary according to the kubernetes version, note match, or there may be an installation failure.

"'
# All nodes will be installed
Gcr.io/google_containers/pause-amd64
Gcr.io/google_containers/kube-proxy-amd64

# Manage Node Installation
Gcr.io/google_containers/etcd-amd64
Gcr.io/google_containers/kube-apiserver-amd64
Gcr.io/google_containers/kube-scheduler-amd64
Gcr.io/google_containers/kube-discovery-amd64
Gcr.io/google_containers/kube-controller-manager-amd64
Gcr.io/google_containers/exechealthz-amd64

# Network plugin, all nodes will be installed
Weaveworks/weave-kube
Weaveworks/weave-npc

# DNS plug-in, Management node installation
Gcr.io/google_containers/kubedns-amd64
Gcr.io/google_containers/kube-dnsmasq-amd64
Gcr.io/google_containers/dnsmasq-metrics-amd64

# Web interface, Management node installation
Gcr.io/google_containers/kubernetes-dashboard-amd64

"'

Start the Kubelet service

Systemctl Start Kubelet

Install work node

Kubeadm join–token=[Previous token] [management node IP]

Installing the POD Network

Pod Network has many implementations, can choose to have flannel,weave wait, download weave yaml directly in Kubernetes run

Kubectl apply-f Weave-daemonset.yaml

Run Dashborad

Method with Pod Network

Kubectl apply-f Weave-daemonset.yaml

Other component Modules

All modules are running in pod in kubernetes. Ingress module implementation needs to rely on Traefik Daemon Set; dashboard module needs kubernetes-dashboard-amd64; The monitoring module needs to run Heapster, Influxdb, grafana three service;

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.