In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
#! / bin/bash
# hostnamectl set-hostname k8s
# echo "192.168.5.130k8s" > > / etc/hosts
# echo "192.168.5.131 k8s1" > > / etc/hosts
# echo "192.168.5.132 k8s2" > > / etc/hosts
# systemctl stop firewalld & & systemctl disable firewalld
# sed-I "s/SELINUX=enforcing/SELINUX=disabled/g" / etc/sysconfig/selinux
# swapoff-a
# SwapLineNumber=sed-n'/ swap/=' / etc/fstab
# sed-I $SwapLineNumber's/ ^ / # & /'/ etc/fstab
# echo net.bridge.bridge-nf-call-ip6tables = 1 > > / etc/sysctl.d/k8s.conf
# echo net.bridge.bridge-nf-call-iptables = 1 > > / etc/sysctl.d/k8s.conf
# echo net.ipv4.ip_forward = 1 > > / etc/sysctl.d/k8s.conf
# modprobe br_netfilter
# sysctl-p / etc/sysctl.d/k8s.conf
# download Image
# docker pull cnych/kube-apiserver-amd64:v1.10.0
# docker pull cnych/kube-scheduler-amd64:v1.10.0
# docker pull cnych/kube-controller-manager-amd64:v1.10.0
# docker pull cnych/kube-proxy-amd64:v1.10.0
# docker pull cnych/k8s-dns-kube-dns-amd64:1.14.8
# docker pull cnych/k8s-dns-dnsmasq-nanny-amd64:1.14.8
# docker pull cnych/k8s-dns-sidecar-amd64:1.14.8
# docker pull cnych/etcd-amd64:3.1.12
# docker pull cnych/flannel:v0.10.0-amd64
# docker pull cnych/pause-amd64:3.1
# docker tag cnych/kube-apiserver-amd64:v1.10.0 k8s.gcr.io/kube-apiserver-amd64:v1.10.0
# docker tag cnych/kube-scheduler-amd64:v1.10.0 k8s.gcr.io/kube-scheduler-amd64:v1.10.0
# docker tag cnych/kube-controller-manager-amd64:v1.10.0 k8s.gcr.io/kube-controller-manager-amd64:v1.10.0
# docker tag cnych/kube-proxy-amd64:v1.10.0 k8s.gcr.io/kube-proxy-amd64:v1.10.0
# docker tag cnych/k8s-dns-kube-dns-amd64:1.14.8 k8s.gcr.io/k8s-dns-kube-dns-amd64:1.14.8
# docker tag cnych/k8s-dns-dnsmasq-nanny-amd64:1.14.8 k8s.gcr.io/k8s-dns-dnsmasq-nanny-amd64:1.14.8
# docker tag cnych/k8s-dns-sidecar-amd64:1.14.8 k8s.gcr.io/k8s-dns-sidecar-amd64:1.14.8
# docker tag cnych/etcd-amd64:3.1.12 k8s.gcr.io/etcd-amd64:3.1.12
# docker tag cnych/flannel:v0.10.0-amd64 quay.io/coreos/flannel:v0.10.0-amd64
# docker tag cnych/pause-amd64:3.1 k8s.gcr.io/pause-amd64:3.1
# docker rmi cnych/kube-apiserver-amd64:v1.10.0
# docker rmi cnych/kube-scheduler-amd64:v1.10.0
# docker rmi cnych/kube-controller-manager-amd64:v1.10.0
# docker rmi cnych/kube-proxy-amd64:v1.10.0
# docker rmi cnych/k8s-dns-kube-dns-amd64:1.14.8
# docker rmi cnych/k8s-dns-dnsmasq-nanny-amd64:1.14.8
# docker rmi cnych/k8s-dns-sidecar-amd64:1.14.8
# docker rmi cnych/etcd-amd64:3.1.12
# docker rmi cnych/flannel:v0.10.0-amd64
# docker rmi cnych/pause-amd64:3.1
# add yum Feed
# cat cgroupfs
# cgroupdriverlineNumber=sed-n'/ systemd/=' / etc/systemd/system/kubelet.service.d/10-kubeadm.conf
# sed-I "s/systemd/cgroupfs/g" / etc/systemd/system/kubelet.service.d/10-kubeadm.conf
# reload kubectl daemon
# systemctl daemon-reload
Read-p "Please enter native ip address:" IP
# start k8s
Kubeadm init-kubernetes-version=v1.10.0-pod-network-cidr=10.244.0.0/16-apiserver-advertise-address=$IP
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.