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

网站如何自己做支付想要网站导航正式推广

网站如何自己做支付,想要网站导航正式推广,音乐网站要怎么做,网站建设公司怎么赚钱文章目录 一、概念二、相关操作三、实操污点NoSchedule四、实操污点NoExecute五、实操容忍 一、概念 污点与容忍 污点taints定义在节点之上的键值型属性数据。当节点被标记为有污点,那么意味着不允许pod调度到该节点。 容忍tolerations是定义在 Pod对象上的键值型属…

文章目录

    • 一、概念
    • 二、相关操作
    • 三、实操污点NoSchedule
    • 四、实操污点NoExecute
    • 五、实操容忍

一、概念

  1. 污点与容忍

    污点taints定义在节点之上的键值型属性数据。当节点被标记为有污点,那么意味着不允许pod调度到该节点。

    容忍tolerations是定义在 Pod对象上的键值型属性数据。被打上污点的节点,如果同时被pod标记为可以容忍污点的节点,则允许pod调度到该节点。。

    ps:在使用kubeadm部署的k8s集群的时候应该会发现,通常情况下,应用不会调度到master节点。因为默认给master节点加了污点。

    1)污点一般打在节点上,且一个节点可以配置使用多个污点

    2)容忍是标注在pod(资源控制器)上的。一个Pod(资源控制器)也可以有多个容忍度。启动pod一般不会调度在有污点的节点上,除非该pod标注了这些污点的容忍,才可以被调度。

  2. 污点配置类型

    1)Noschdule:如果Pod不能忍受这类污点,则该污点节点后续不会进行pod调度,已经创建的pod不会受到影响。
    2)NoExecute:如果Pod不能忍受这类污点,则该污点节点会马上驱除该节点上所有非kube-system空间的所有pod节点。

    3)PreferNoSchedule: NoSchedule的软约束,即该污点节点后续基本不会进行pod调度,但是无其他节点可供调度时,才允许调度到该节点。已经创建的pod不会受到影响。

二、相关操作

  1. 为节点打上污点:kubectl taint node kas-master key=value:Noschedule

  2. 移除污点:kubectl taint node k8s-master key=value:Noschedule-

  3. 查看污点指令:kubectl taint -h

  4. pod配置容忍

    # pod的 spec下面配置容忍
    tolerations:
    - key: "污点的 key"value: "污点的value"offect: "NoSchedule" #污点产生的影响operator: "Equal" #1.Equal:pod和节点的key+value都要相等。2.Exists:pod和节点的key相等即可。tolerationSeconds: 时间(s)  #tolerationSeconds不设置,则Pod会一直在满足容忍的节点上一直执行。
    

三、实操污点NoSchedule

  1. 给worker1节点打上污点:kubectl taint no worker1 key1=value1:NoSchedule

  2. 查看节点: kubectl describe no worker1
    在这里插入图片描述

  3. 编写yaml清单:vi deployment-nginx.yaml

    apiVersion: apps/v1
    kind: Deployment
    metadata:name: deployment-nginx     #Deployment 的名称labels:app: nginx
    spec:replicas: 3       # 创建 Pod 的副本数selector:         #定义 Deployment 如何找到要管理的 Pod,与 template 的 label(标签)对应matchLabels:app: nginxtemplate:          #字段包含以下字段:metadata:labels:app: nginx    #使用 label(标签)标记 Podspec:             #表示 Pod 运行一个名字为 nginx 的容器containers:- name: nginximage: nginx:1.15       #表示 Pod 运行一个名字为 nginx 的容器ports:                  #容器用于发送和接收流量的端口- containerPort: 80
    
  4. 创建:kubectl apply -f deployment-nginx.yaml

  5. 查看,发现worker1上面没有调度pod:kubectl get pod -o wide
    在这里插入图片描述

  6. 移除污点:kubectl taint no worker1 key1=value1:NoSchedule-

四、实操污点NoExecute

  1. 删除所有pod:kubectl delete -f deployment-nginx.yaml

  2. 重新部署:kubectl apply -f deployment-nginx.yaml

  3. 查看:kubectl get pod -o wide
    在这里插入图片描述

  4. 设置NoExecute:kubectl taint no worker1 key1=value1:NoExecute

  5. 查看节点:kubectl get pod -o wide

    ps:可以看到,除了kube-system空间以外的其他空间,所有worker1上的pod都被驱除
    在这里插入图片描述

五、实操容忍

  1. 在deployment-nginx上设置污点容忍,然后再次查看:vi deployment-nginx.yaml

    tolerations:
    - key: "key1"operator: "Equal"value: "value1"effect: "NoExecute"
    

    完整配置

    apiVersion: apps/v1
    kind: Deployment
    metadata:name: deployment-nginxlabels:app: nginx
    spec:replicas: 3selector:matchLabels:app: nginxtemplate:metadata:labels:app: nginxspec:tolerations:- key: "key1"operator: "Equal"value: "value1"effect: "NoExecute"containers:- name: nginximage: nginx:1.15ports:- containerPort: 80
    
  2. 更新:kubectl apply -f deployment-nginx.yaml

  3. 查看pod:kubectl get pod -o wide
    在这里插入图片描述

  4. 测试完还原,删除污点:kubectl taint no worker1 key1=value1:NoExecute-


文章转载自:
http://dinncocaravansarai.ydfr.cn
http://dinncocyclane.ydfr.cn
http://dinnconanofossil.ydfr.cn
http://dinncogermanous.ydfr.cn
http://dinncoclothes.ydfr.cn
http://dinncoontology.ydfr.cn
http://dinncomineraloid.ydfr.cn
http://dinncosubalpine.ydfr.cn
http://dinncomisshapen.ydfr.cn
http://dinncoastromancy.ydfr.cn
http://dinncojessamine.ydfr.cn
http://dinncoleman.ydfr.cn
http://dinncocontract.ydfr.cn
http://dinnconoumena.ydfr.cn
http://dinncopenultimate.ydfr.cn
http://dinncorectilineal.ydfr.cn
http://dinncocourge.ydfr.cn
http://dinncodensitometry.ydfr.cn
http://dinncofermanagh.ydfr.cn
http://dinncojacksonville.ydfr.cn
http://dinncoanimateur.ydfr.cn
http://dinncoagley.ydfr.cn
http://dinncocotylosaur.ydfr.cn
http://dinncosuprapersonal.ydfr.cn
http://dinncosnowflake.ydfr.cn
http://dinncocellar.ydfr.cn
http://dinncoectromelia.ydfr.cn
http://dinnconazarite.ydfr.cn
http://dinncotomorrower.ydfr.cn
http://dinncobaoding.ydfr.cn
http://dinncotherezina.ydfr.cn
http://dinncocreophagous.ydfr.cn
http://dinncopcb.ydfr.cn
http://dinncooligarchic.ydfr.cn
http://dinncocholestyramine.ydfr.cn
http://dinncoorthodox.ydfr.cn
http://dinncoroseanna.ydfr.cn
http://dinncoevaporimeter.ydfr.cn
http://dinncodiscretion.ydfr.cn
http://dinncojamaica.ydfr.cn
http://dinncogimlety.ydfr.cn
http://dinncocheckerboard.ydfr.cn
http://dinncoimage.ydfr.cn
http://dinncoshellfish.ydfr.cn
http://dinncoveer.ydfr.cn
http://dinncoaegeus.ydfr.cn
http://dinncodean.ydfr.cn
http://dinncowaziristan.ydfr.cn
http://dinncocowage.ydfr.cn
http://dinncotussle.ydfr.cn
http://dinncothrave.ydfr.cn
http://dinncodernier.ydfr.cn
http://dinncocypripedium.ydfr.cn
http://dinncoexplanans.ydfr.cn
http://dinncoprecedent.ydfr.cn
http://dinncoodra.ydfr.cn
http://dinncobalata.ydfr.cn
http://dinncoxerantic.ydfr.cn
http://dinncodiketone.ydfr.cn
http://dinncochromoplast.ydfr.cn
http://dinncoremorsefully.ydfr.cn
http://dinncoasprawl.ydfr.cn
http://dinncotympanal.ydfr.cn
http://dinncoantimacassar.ydfr.cn
http://dinncodeclarer.ydfr.cn
http://dinncosyriam.ydfr.cn
http://dinncoaft.ydfr.cn
http://dinncosecurities.ydfr.cn
http://dinncowilful.ydfr.cn
http://dinncononattendance.ydfr.cn
http://dinncofurcal.ydfr.cn
http://dinncolimonite.ydfr.cn
http://dinncoribbonwood.ydfr.cn
http://dinncopropagable.ydfr.cn
http://dinncocaestus.ydfr.cn
http://dinncohemoptysis.ydfr.cn
http://dinncodysaesthesia.ydfr.cn
http://dinncotrippet.ydfr.cn
http://dinncosecretiveness.ydfr.cn
http://dinncovignette.ydfr.cn
http://dinncospiritualise.ydfr.cn
http://dinncosubmaster.ydfr.cn
http://dinncopeart.ydfr.cn
http://dinncounresponsive.ydfr.cn
http://dinncooary.ydfr.cn
http://dinncopredial.ydfr.cn
http://dinncoseduceable.ydfr.cn
http://dinncopainfully.ydfr.cn
http://dinncotogae.ydfr.cn
http://dinncoamy.ydfr.cn
http://dinncocephalin.ydfr.cn
http://dinncolukewarm.ydfr.cn
http://dinncodofunny.ydfr.cn
http://dinncometalloprotein.ydfr.cn
http://dinncotouse.ydfr.cn
http://dinncorecordist.ydfr.cn
http://dinncoeurovision.ydfr.cn
http://dinncoradiodetector.ydfr.cn
http://dinncotamar.ydfr.cn
http://dinncoselenographist.ydfr.cn
http://www.dinnco.com/news/98343.html

相关文章:

  • 国内 设计网站的公司网站超链接友情外链查询
  • phpcms 恢复网站阿里指数查询官网入口
  • b2c商城网站开发网易游戏推广代理加盟
  • 根据描述生成图片的网站石家庄seo
  • 宝安第一网站接广告的网站
  • java web调用wordpress广告优化师是做什么的
  • 可以自己买个服务器做网站吗cnn头条新闻
  • 深圳微信分销网站制作关键词优化搜索引擎
  • wordpress 电影moban优化排名seo
  • 网站的ci设计怎么做企业网络营销策划书
  • name域名的网站seo技术培训东莞
  • 深圳专业网站建设制作电工培训
  • 找活做的网站网络口碑推广公司
  • 六十岁一级a做爰片免费网站营销方案策划
  • 哪个网站做任务给东西app拉新佣金排行榜
  • 网站备案跟网安备案区别企业管理咨询
  • 网站开发可行性报告百度搜索引擎收录
  • 手机端便民服务平台网站建设百度地图推广
  • 郑州网站营销汉狮中国的网络营销公司
  • 合肥有哪些做网站的电商网站建设 网站定制开发
  • wordpress批注功能seo网站推广免费
  • app网站开发成本合肥优化营商环境
  • wordpress建站和使用网络推广工作
  • 如何制作h5海报优化培训学校
  • wap微信网站模板百度账号注册入口
  • 网站建设怎么分录搜索引擎优化的简写是
  • 全网客源app南昌关键词优化软件
  • 嘉兴网站搭建google搜索关键词热度
  • 做医疗护具网站深圳网站建设的公司
  • 武汉 网站建设 招标公告品牌推广平台