In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Building full record of Kubernetes v1.11.2 based on Kubeadm
Required mirror image
K8s.gcr.io/pause:3.1
K8s.gcr.io/coredns
Quay.io/coreos/flannel:v0.10.0-amd64
K8s.gcr.io/etcd-amd64:3.2.18
K8s.gcr.io/kube-proxy-amd64:v1.11.2
K8s.gcr.io/kube-apiserver-amd64:v1.11.2
K8s.gcr.io/kube-controller-manager-amd64:v1.11.2
K8s.gcr.io/kube-scheduler-amd64:v1.11.2
Monitor and control
Gcr.io/google_containers/heapster-grafana-amd64:v4.4.3
Gcr.io/google_containers/heapster-influxdb-amd64:v1.3.3
Gcr.io/google_containers/heapster-amd64:v1.5.3
Quay.io/calico/cni:v2.0.5
Quay.io/calico/kube-controllers:v2.0.4
The main purpose of this paper is to record the steps of individuals in the configuration of K8S cluster, as well as the problems encountered and the corresponding solutions, from cluster building to Kubernetes-Dashboard installation, role permissions configuration.
First, let's briefly introduce the environment. The situation of the four nodes is as follows:
Node name IP OS installation software
Master 10.211.55.6 Centos7 kubeadm,kubelet,kubectl,docker
Node1 10.211.55.7 Centos7 kubeadm,kubelet,kubectl,docker
Node2 10.211.55.8 Centos7 kubeadm,kubelet,kubectl,docker
Node3 10.211.55.9 Centos7 kubeadm,kubelet,kubectl,docker
The version of kubeadm,kubectl,kubelet is v1.10.0 and the version of Docker is 1.13.1.
one。 The preparatory work of each node:
1. Turn off and deactivate the firewall
Systemctl stop firewalld.service
Systemctl disable firewalld.service
two。 Permanently close SELinux
Vim / etc/selinux/config
SELINUX=disabled
3. Synchronize cluster system time
Yum-y install ntp
Ntpdate 0.asia.pool.ntp.org
4 optimization
Set up ipv4 forwarding:
Vim / etc/sysctl.d/k8s.conf: add a line net.ipv4.ip_forward = 1
Sysctl-p / etc/sysctl.d/k8s.conf
Net-bridge settings under centos7:
Echo 1 > / proc/sys/net/bridge/bridge-nf-call-iptables
Echo 1 > / proc/sys/net/bridge/bridge-nf-call-ip6tables
5. Restart the machine
Reboot
two。 Software installation and configuration:
Note ⚠️: software sources are configured on demand. Three sources are given below, of which the kubernetes yum source must be configured, and the docker source needs to be installed if you need to install the docker-ce version, otherwise a maximum of 1.13.1 version is supported.
# Ali Cloud yum source: wget-O / etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo yum clean all yum makecache
# docker yum Source cat > > / etc/yum.repos.d/docker.repo / etc/yum.repos.d/kubernetes.repo
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.