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;