In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-16 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.
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
HAProxy Advanced applications = Overview: this chapter will continue
© 2024 shulou.com SLNews company. All rights reserved.