In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
You may need to install offline for a variety of reasons, but it depends on why you don't install it through apt or yum.
This mainly refers to the operating system of the rpm package, such as centos, fedora and so on.
Description of environment
The v1.14.1 version of kubernetes is installed here, and cni selects flannel.
The installation system depends on the yum install conntrack-tools socat ebtables system environment to configure groupadd dockeruseradd-g docker docker
Possible configurations / etc/default/grub-> GRUB_CMDLINE_LINUX_DEFAULT
Cgroup_enable=memory swapaccount=1
Cancel swap
Edit / etc/fstab to comment out the line containing the swap field
Finally restart
Download related files
Download kubeadm,kubectl, kubelet, kubernetes-cni, docker-ce, kube-flannel.yml
Curl-LO https://storage.googleapis.com/kubernetes-release/release/v1.14.1/bin/linux/amd64/kubeadmcurl-LO https://storage.googleapis.com/kubernetes-release/release/v1.14.1/bin/linux/amd64/kubeletcurl-LO https://storage.googleapis.com/kubernetes-release/release/v1.14.1/bin/linux/amd64/kubectlcurl-LO https://download.docker.com/linux/static/stable/x86_64/docker-18. 06.3-ce.tgzcurl-LO https://github.com/containernetworking/plugins/releases/download/v0.8.2/cni-plugins-linux-amd64-v0.8.2.tgzcurl-LO https://raw.githubusercontent.com/coreos/flannel/62e44c867a2846fefb68bd5f178daf4da3095ccb/Documentation/kube-flannel.yml install kubernetes related commands chmod + x kube*mv kube* / usr/local/bin/mkdir-p / opt/cni/bintar xf cni-plugins-linux-amd64-v0.8.2.tgz-C / opt/cni/bin
Configure the kubelet service
Cat > / usr/lib/systemd/system/kubelet.service / etc/systemd/system/kubelet.service.d/10-kubeadm.conf / usr/lib/systemd/system/docker.service [Unit] Description=docker: docker [service] ExecStart=/usr/local/bin/dockerdRestart=alwaysStartLimitInterval=0RestartSec= 10 [install] WantedBy=multi-user.target
Start the docker service and start with the system
Systemctl enable dockersystemctl start docker
Download the following docker images through the docker pull command:
K8s.gcr.io/kube-apiserver:v1.14.1k8s.gcr.io/kube-controller-manager:v1.14.1k8s.gcr.io/kube-scheduler:v1.14.1k8s.gcr.io/kube-proxy:v1.14.1k8s.gcr.io/pause:3.1k8s.gcr.io/etcd:3.3.10k8s.gcr.io/coredns:1.3.1 https://raw.githubusercontent.com/coreos/flannel/62e44c867a2846fefb68bd5f178daf4da3095ccb/Documentation/kube-flannel.ymlquay.io/coreos/flannel:v0.11.0-amd64
These related mirror versions can be listed with the following command
Kubeadm config images listk8s cluster initialization kubeadm init-vault 8-- alsologtostderr
Configure your own admin.conf
Mkdir-p $HOME/.kubecp-I / etc/kubernetes/admin.comf $HOME/.kube
Make yourself schedulable
Kubectl taint node hostname node-role.kubernetes.io/master=-
Configure the pod cidr network
Edit the / etc/kubernetes/manifests/kube-controller-manager.yaml file and add in the command entry
-- allocate-node-cidrs=true--cluster-cidr=10.244.0.0/16
Restart kubelet
Systemctl restart kubelet installs cnikubectl apply-f kube-flannel.yml
So far, it's done.
The final explanation
Pure record, if it can't be loaded according to the document or some commands are normal.
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.