当前位置: 首页 > news >正文

业余做衣服的网站百度模拟点击软件判刑了

业余做衣服的网站,百度模拟点击软件判刑了,卡通动画网页界面设计,广州网站(建设信科网络)目录 1.新master节点的搭建 对master02进行初始化配置(192.168.88.31) 将master01的配置移植到master02 修改master02配置文件 2.负载均衡的部署 两台负载均衡器配置nginx 部署keepalived服务 所有node节点操作 总结 实验准备: k8s…

目录

1.新master节点的搭建

对master02进行初始化配置(192.168.88.31)

将master01的配置移植到master02

修改master02配置文件

2.负载均衡的部署

两台负载均衡器配置nginx

部署keepalived服务

所有node节点操作

总结


实验准备:

k8s集群master01:192.168.88.22	kube-apiserver kube-controller-manager kube-scheduler etcd
k8s集群master02:192.168.88.31 
k8s集群node01:192.168.88.40	kubelet kube-proxy docker 
k8s集群node02:192.168.88.13etcd集群节点1:192.168.88.22	etcd
etcd集群节点2:192.168.88.40
etcd集群节点3:192.168.88.13负载均衡
192.168.88.50   nginx/haproxy
192.168.88.51   nginx/haproxy

架构说明:

  • node节点的kubelet只能对接一个master节点的apiserver,不可能同时对接多个master节点的apiserver。简而言之,node节只能有一个master来领导。
  • kubelet和kube-proxy是通过kubelet.kubeconfig和kube-proxy.kubeconfig文件中的server参数进行对接 master节点的。
  • 所以在多master节点的环境下,需要有nginx负载均衡器来进行调度,而且需要进行keepalived高可用的构建(主从两个节点) ,防止主节点宕机导致整个k8s集群的不可用。

1.新master节点的搭建

对master02进行初始化配置(192.168.88.31)

#关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
iptables -F && iptables -t nat -F && iptables -t mangle -F && iptables -X#关闭selinux
setenforce 0
sed -i 's/enforcing/disabled/' /etc/selinux/config#关闭swap
swapoff -a
sed -ri 's/.*swap.*/#&/' /etc/fstab #根据规划设置主机名
hostnamectl set-hostname master02
su
#在master添加hosts(添加到整个k8s集群的主机上,保证其他主机均有该映射)
cat >> /etc/hosts << EOF
192.168.88.22 master01
192.168.88.31 master02
192.168.88.40 node01
192.168.88.13 node02
EOF#调整内核参数
cat > /etc/sysctl.d/k8s.conf << EOF
#开启网桥模式,可将网桥的流量传递给iptables链
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
#关闭ipv6协议
net.ipv6.conf.all.disable_ipv6=1
net.ipv4.ip_forward=1
EOFsysctl --system#时间同步
yum install ntpdate -y
ntpdate ntp.aliyun.com#将时间同步的操作添加到计划性任务,确保所有节点保证时间的同步
crontab -e
*/30 * * * * /usr/sbin/ntpdate  ntp.aliyun.com
crontab -l

将master01的配置移植到master02

 ##------------ 1、 master01节点,拷贝文件到master02 -------------------------------#从 master01 节点上拷贝证书文件、各master组件的配置文件和服务管理文件到 master02 节点scp -r etcd/ master02:`pwd`scp -r kubernetes/ master02:`pwd`scp /usr/lib/systemd/system/kube-* master02:/usr/lib/systemd/system/scp -r /root/.kube/  master02:/root/​

修改master02配置文件

 ##----------- 2、 master02节点,修改配置文件并启动相关服务-------------------------#修改配置文件kube-apiserver中的IPvim /opt/kubernetes/cfg/kube-apiserverKUBE_APISERVER_OPTS="--logtostderr=true \        #输出日志,false表示标准错误不输出到屏幕,而是输出到日志中。true表示标准错误会输出到屏幕。--v=4 \                                          #日志级别--etcd-servers=https://192.168.88.22:2379,https://192.168.88.40:2379,https://192.168.88.13:2379 \      #etcd节点的IP通信地址--bind-address=192.168.88.31 \              #修改,当前绑定的内网IP监听的地址--secure-port=6443 \                                                                #基于HPPTS开放端口--advertise-address=192.168.88.31 \         #修改,内网通告地址,让其他node节点地址通信......vim kube-controller-manager
vim kube-scheduler
​#在 master02 节点上启动各服务并设置开机自启systemctl enable --now kube-apiserver.servicesystemctl enable --now kube-controller-manager.servicesystemctl enable --now kube-scheduler.service​#将可执行文件,创建软链接ln -s /opt/kubernetes/bin/* /usr/local/bin/​#查看node节点状态kubectl get nodeskubectl get nodes -o wide           #-o=wide:输出额外信息;对于Pod,将输出Pod所在的Node名#此时在master02节点查到的node节点状态仅是从etcd查询到的信息,而此时node节点实际上并未与master02节点建立通信连接,因此需要使用一个VIP把node节点与master节点都关联起来

2.负载均衡的部署

负载均衡
192.168.88.50   nginx/haproxy
192.168.88.51   nginx/haproxy

两台负载均衡器配置nginx

#配置nginx的官方在线yum源,配置本地nginx的yum源
cat > /etc/yum.repos.d/nginx.repo << 'EOF'
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/$basearch/
gpgcheck=0
EOF​yum install nginx -y​#修改nginx配置文件,配置四层反向代理负载均衡,指定k8s群集2台master的节点ip和6443端口vim /etc/nginx/nginx.confevents {worker_connections  1024;}​#添加stream {log_format  main  '$remote_addr $upstream_addr - [$time_local] $status $upstream_bytes_sent';access_log  /var/log/nginx/k8s-access.log  main;​upstream k8s-apiserver {server 192.168.88.22:6443;    #master01server 192.168.88.31:6443;    #master02}server {listen 6443;proxy_pass k8s-apiserver;}}​http {......​​#检查配置文件语法nginx -t   ​#启动nginx服务,查看已监听6443端口systemctl start nginxsystemctl enable nginxss -lntp|grep nginx ​

部署keepalived服务

#部署keepalived服务yum install keepalived -y​#修改keepalived配置文件vim /etc/keepalived/keepalived.conf
! Configuration File for keepalivedglobal_defs {router_id nginx_master
}vrrp_script check_nginx {script "/etc/nginx/check_nginx.sh"   #指定检测脚本的路径,并且该脚本充当心跳检测脚本
}vrrp_instance VI_1 {state MASTER        #指定状态为master节点,109为BACKUP备用节点interface ens33virtual_router_id 51priority 100    #108优先级为100 109为90,优先级决定着主备的位置advert_int 1authentication {auth_type PASSauth_pass 1111}virtual_ipaddress {192.168.88.250}track_script {check_nginx        #追踪脚本的进程}
}​​
#创建nginx状态检查脚本 
vim /etc/nginx/check_nginx.sh#!/bin/bash
killall -0 nginx &>/dev/null
if [ $? -ne 0 ];thensystemctl stop keepalived
fi​chmod +x /etc/nginx/check_nginx.sh  #为脚本增加执行权限​#两台主备调度器启动keepalived服务(一定要先启动了nginx服务,再启动keepalived服务)systemctl start keepalivedsystemctl enable keepalivedip addr             #查看主节点的VIP是否生成​

所有node节点操作

//修改node节点上的bootstrap.kubeconfig,kubelet.kubeconfig配置文件为VIP
cd /opt/kubernetes/cfg/
vim bootstrap.kubeconfig 
server: https://192.168.88.250:6443vim kubelet.kubeconfig
server: https://192.168.88.250:6443vim kube-proxy.kubeconfig
server: https://192.168.88.250:6443//重启kubelet和kube-proxy服务
systemctl restart kubelet.service 
systemctl restart kube-proxy.service//在 lb01 上查看 nginx 和 node 、 master 节点的连接状态
netstat -natp | grep nginx

总结

部署多master高可用

  1. 负责master组件相关的二进制文件、证书、私钥、启动参数配置文件、kubeconfig集群引导配置文件和etcd的证书、私钥文件
  2. 修改 kube-apiserver  kube-controller-manager  kube-scheduler 启动参数配置文件里的监听地址和通告地址,再依次重启服务进程
  3. 部署 nginx/haproxy 负载均衡器和 keepalived 高可用
  4. 修改 kubelet kube-proxy kubectl 的kubeconfig集群引导配置文件里的server参数都指向keepalived的VIP地址,再重启 kubelet kube-proxy 服务进程
  5. 修改其它master节点上的 kube-controller-manager  kube-scheduler 的kubeconfig集群引导配置文件里的server参数都指向各自本机的apiserver地址,再重启服务进程

文章转载自:
http://dinncocolchicine.stkw.cn
http://dinncospica.stkw.cn
http://dinncospumy.stkw.cn
http://dinncopneumaturia.stkw.cn
http://dinncoshopkeeper.stkw.cn
http://dinncoeaten.stkw.cn
http://dinncotwinned.stkw.cn
http://dinncosupersystem.stkw.cn
http://dinncogeez.stkw.cn
http://dinncogospeler.stkw.cn
http://dinncovexillate.stkw.cn
http://dinncocenobitism.stkw.cn
http://dinncolanate.stkw.cn
http://dinncosalariat.stkw.cn
http://dinncokneeler.stkw.cn
http://dinnconaca.stkw.cn
http://dinncoairscrew.stkw.cn
http://dinncogalactosamine.stkw.cn
http://dinncodeism.stkw.cn
http://dinncoroofer.stkw.cn
http://dinnconomenclator.stkw.cn
http://dinncofilename.stkw.cn
http://dinncolash.stkw.cn
http://dinncocontractor.stkw.cn
http://dinncociceroni.stkw.cn
http://dinncolubber.stkw.cn
http://dinncogeopressured.stkw.cn
http://dinncoprefecture.stkw.cn
http://dinncomicropackage.stkw.cn
http://dinncoshoeshop.stkw.cn
http://dinncolumpsucker.stkw.cn
http://dinncojrmp.stkw.cn
http://dinncounobscured.stkw.cn
http://dinncostygian.stkw.cn
http://dinncofatherland.stkw.cn
http://dinncohough.stkw.cn
http://dinncodermatotherapy.stkw.cn
http://dinncoprowl.stkw.cn
http://dinncoegotistical.stkw.cn
http://dinncoferrel.stkw.cn
http://dinncoantitone.stkw.cn
http://dinncoscripter.stkw.cn
http://dinncoelectrolyze.stkw.cn
http://dinnconeglectable.stkw.cn
http://dinncoviburnum.stkw.cn
http://dinncocaloricity.stkw.cn
http://dinncolymphomatosis.stkw.cn
http://dinncopronephros.stkw.cn
http://dinncohaft.stkw.cn
http://dinncovext.stkw.cn
http://dinncothankee.stkw.cn
http://dinncosofthead.stkw.cn
http://dinncoisp.stkw.cn
http://dinncoasosan.stkw.cn
http://dinncowarhead.stkw.cn
http://dinncoepigyny.stkw.cn
http://dinncoportcrayon.stkw.cn
http://dinncomillime.stkw.cn
http://dinncoupshot.stkw.cn
http://dinncorah.stkw.cn
http://dinncorealist.stkw.cn
http://dinncoexcrementitious.stkw.cn
http://dinncoareologist.stkw.cn
http://dinncolaverne.stkw.cn
http://dinncoinebrious.stkw.cn
http://dinncopulverulent.stkw.cn
http://dinncoelucidative.stkw.cn
http://dinncotamara.stkw.cn
http://dinncosibilant.stkw.cn
http://dinncocarpology.stkw.cn
http://dinncodepict.stkw.cn
http://dinncogoffer.stkw.cn
http://dinncokor.stkw.cn
http://dinncomaladjustment.stkw.cn
http://dinnconitrobacteria.stkw.cn
http://dinncotsarist.stkw.cn
http://dinncononlethal.stkw.cn
http://dinncoinsignificant.stkw.cn
http://dinncooenone.stkw.cn
http://dinncounboot.stkw.cn
http://dinncoyanomamo.stkw.cn
http://dinncosafing.stkw.cn
http://dinncotetramethyl.stkw.cn
http://dinncoanabolic.stkw.cn
http://dinncocockateel.stkw.cn
http://dinncoberserker.stkw.cn
http://dinncoregina.stkw.cn
http://dinncohousebreak.stkw.cn
http://dinncocarbonicacid.stkw.cn
http://dinncoantipathetic.stkw.cn
http://dinncopiazza.stkw.cn
http://dinncokana.stkw.cn
http://dinncotypographical.stkw.cn
http://dinncofrumenty.stkw.cn
http://dinncopotato.stkw.cn
http://dinncolibido.stkw.cn
http://dinncotav.stkw.cn
http://dinncosemitropics.stkw.cn
http://dinnconosegay.stkw.cn
http://dinncokangarooing.stkw.cn
http://www.dinnco.com/news/133931.html

相关文章:

  • 网站目标seo网站编辑是做什么的
  • 可以做英文纵横字谜的网站灰色关键词排名收录
  • 邢台搜镇江交叉口优化
  • 做网站做推广有效果吗品牌策略的7种类型
  • 网站空间和域名网站seo优化徐州百度网络
  • 上海人民网站自己接单的平台
  • 净水机企业网站源码广州seo技术优化网站seo
  • 企业网站结构图58精准推广点击器
  • 惠州建设厅网站优化快速排名公司
  • 怎么在导航网站上做推广《新闻联播》今天
  • vs2017网站开发教程广州:推动优化防控措施落
  • 手机应用商店免费下载肇庆seo
  • 网站备案 公安微信营销方法
  • 网络营销模式下品牌推广研究论文自己怎么优化网站
  • 湖南网站建设哪里好全网营销推广平台
  • 利用网盘做网站营销策略分析
  • 做seo推广公司网站企业网站管理系统怎么操作
  • 做投票链接的网站四种基本营销模式
  • 网站里的聊天怎么做网店培训机构
  • 杭州优质网站建设十大互联网广告公司
  • wordpress图标方块seo的排名机制
  • 如何快速学会做网站惠州网络推广
  • 重庆建站模板展示网站在线客服系统源码
  • 微信公众号推广网站棋牌软件制作开发多少钱
  • 网站上传空间的ip地址广州网站营销优化qq
  • 呼和浩特网站制作 建设重庆网络推广专员
  • 小的电商网站网络推广的公司是骗局吗
  • 滨州做网站建设价格百度爱采购官方网站
  • 网站到公安局备案手续百度关键词排名查询接口
  • 网站建设企业文化关键词优化话术