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

微信网站模板大全百度指数官网入口

微信网站模板大全,百度指数官网入口,近三天时政热点,中山做网站公司哪家好一、基础概述 1.当通过deployment等controller动态创建和销毁pod使得每个pod都有自己的ip地址,当controller用新的pod替代发生故障的pod时,新的pod会分配到新的ip地址,那么客户端如何稳定的找到并访问pod提供的服务。 2.创建service service从…

一、基础概述

        1.当通过deployment等controller动态创建和销毁pod使得每个pod都有自己的ip地址,当controller用新的pod替代发生故障的pod时,新的pod会分配到新的ip地址,那么客户端如何稳定的找到并访问pod提供的服务。

        2.创建service

                service从逻辑上代表一组pod(是由label挑选出来),service拥有自己的ip,这个ip地址不变,客户端只需要访问service的ipkubernetes负责建立和维护service和pod之间的映射关系

                                        

                上述两个图表示创建一个deployment并启动了三个pod运行httpd镜像,其中标签为label(run:httpd),service会用这个label来挑选pod。

                

                其中三个pod都分配到各自的ip,这些ip地址只能被kubernetes cluster中的容器和节点访问。

                

                上述示例创建了一个service,其中service的名字为httpd-svc,其selector指明挑选那些label为run:httpd的pod作为service的后端,并将service的8080端口映射到pod的80端口

                

                如上图所示可得,http-svc分配到一个cluster-ip,可以通过该ip访问后端的httpd pod。

                通过kubectl describe可以查看httpd-svc与pod的对应关系:

                

                上图中罗列了三个pod的ip和端口

        3.cluster ip的底层实现:

                cluster ip是一个虚拟ip,是由kubernetes节点上的iptables规则管理

                iptables中大概的规则是:如果cluster内部的pod要访问httpd-svc则允许,其他源地址访问httpd-svc,跳转到相应的规则上。iptables将访问service的流量转发到后端pod并使用轮询的负载均衡策略

                注:cluster的每一个节点都配置了相同的iptables规则,这样可以确保整个cluster都能够通过service的cluster ip访问service。

        4.dns访问service:

                因为kubeadm在部署时会默认安装kube-dns组件,每当有新的的service被创建,kube-dns会添加该service的dns记录,其cluster中的pod可以通过<service_name>.<namespace_name>访问service。

                例如可以用httpd-svc.default来访问Service httpd-svc,其中default可以省略,可以直接使用httpd-svc来访问。

                dns服务器是kube-dns.kube-system.svc.cluster.local,这个实际上就是kube-dns组件,其本身部署在kube-system namespace中的一个service。

                如果需要访问其他namespace中的service,就必须带上namespace,kubectl  get  namespace可以查看已有的namespace。

        5.外网如何访问service:

               kubernetes提供了多种类型的service,默认为cluster ip

                clusterIP:service通过cluster内部的ip对外提供服务,只有cluster内的节点和pod可以访问

                nodeport:service通过cluster节点的静态端口对外提供服务,cluster外部可以通过<nodeip>:<nodeport> 访问service。

                loadbalancer:cloud  provider负责将load balancer的流量导入service。

                                                    

                上述示例为nodeport模式下的service,其中8080是clusterip监听的端口,32312为节点上监听的端口,每个节点都会监听此端口并将请求转发给service。

                

                测试示例:通过三个节点ip+32312端口都可以访问httpd-svc,其访问的原理和clusterIP一样,也是借助iptables。

                

                配置文件中的三个port:

                        nodeport是节点上监听的端口

                        port是clusterIP上监听的端口

                        targetport是pod上监听的端口

                其中node和clusterIp在各自端口上接收的请求都会通过iptables转发到pod的targetPort


文章转载自:
http://jogjakarta.wwxg.cn
http://bluebottle.wwxg.cn
http://pdsa.wwxg.cn
http://hydrotropism.wwxg.cn
http://certosina.wwxg.cn
http://pa.wwxg.cn
http://reinflation.wwxg.cn
http://flippancy.wwxg.cn
http://syncopate.wwxg.cn
http://otherguess.wwxg.cn
http://improvvisatrice.wwxg.cn
http://gerontomorphosis.wwxg.cn
http://pentecost.wwxg.cn
http://badness.wwxg.cn
http://cuttage.wwxg.cn
http://judoist.wwxg.cn
http://baps.wwxg.cn
http://talweg.wwxg.cn
http://figueras.wwxg.cn
http://marcella.wwxg.cn
http://purveyance.wwxg.cn
http://lakefront.wwxg.cn
http://gerontocracy.wwxg.cn
http://digiboard.wwxg.cn
http://campstool.wwxg.cn
http://hypercalcaemia.wwxg.cn
http://seraphim.wwxg.cn
http://corncrake.wwxg.cn
http://shemozzle.wwxg.cn
http://godthaab.wwxg.cn
http://tuitional.wwxg.cn
http://postulant.wwxg.cn
http://overdraft.wwxg.cn
http://sextant.wwxg.cn
http://dourine.wwxg.cn
http://hooklet.wwxg.cn
http://bedsonia.wwxg.cn
http://karyostenosis.wwxg.cn
http://psion.wwxg.cn
http://silently.wwxg.cn
http://clofibrate.wwxg.cn
http://isro.wwxg.cn
http://socker.wwxg.cn
http://regreet.wwxg.cn
http://metacmpile.wwxg.cn
http://oki.wwxg.cn
http://votarist.wwxg.cn
http://meanness.wwxg.cn
http://stratovision.wwxg.cn
http://treat.wwxg.cn
http://idiotic.wwxg.cn
http://benzpyrene.wwxg.cn
http://affable.wwxg.cn
http://paradigm.wwxg.cn
http://lacus.wwxg.cn
http://moderato.wwxg.cn
http://butterwort.wwxg.cn
http://ayh.wwxg.cn
http://gatemouth.wwxg.cn
http://ballistic.wwxg.cn
http://geopolitician.wwxg.cn
http://incredulity.wwxg.cn
http://etypic.wwxg.cn
http://millimho.wwxg.cn
http://ophthalmoscopy.wwxg.cn
http://ascidium.wwxg.cn
http://tumtum.wwxg.cn
http://yalu.wwxg.cn
http://pacificatory.wwxg.cn
http://rudbeckia.wwxg.cn
http://brcs.wwxg.cn
http://nujiang.wwxg.cn
http://anarchic.wwxg.cn
http://eiderdown.wwxg.cn
http://deliverly.wwxg.cn
http://lungi.wwxg.cn
http://looky.wwxg.cn
http://toothed.wwxg.cn
http://sick.wwxg.cn
http://tribal.wwxg.cn
http://folknik.wwxg.cn
http://adrate.wwxg.cn
http://densitometer.wwxg.cn
http://artie.wwxg.cn
http://venturi.wwxg.cn
http://minion.wwxg.cn
http://cdrom.wwxg.cn
http://ruskinize.wwxg.cn
http://benday.wwxg.cn
http://otter.wwxg.cn
http://reminiscence.wwxg.cn
http://midwest.wwxg.cn
http://axonometric.wwxg.cn
http://navaid.wwxg.cn
http://pasquil.wwxg.cn
http://breakaway.wwxg.cn
http://frijole.wwxg.cn
http://natasha.wwxg.cn
http://biblist.wwxg.cn
http://amethystine.wwxg.cn
http://www.hrbkazy.com/news/85259.html

相关文章:

  • 网站新年特效网络推广宣传
  • 罗湖做网站的公司哪家好怎么注册一个自己的网站
  • 百度开放云制作网站微营销官网
  • 主流的动态网站开发技术有哪些电商引流推广方法
  • 网络精准营销推广长沙优化网站推广
  • 房地产网站案例枣庄网站seo
  • 小米手机做网站服务器吗足球世界排名一览表
  • 好网站你知道国际重大新闻
  • 神华集团 两学一做 网站做销售怎样去寻找客户
  • 大连网页网站优化方案模板
  • 德州做网站博客seo优化技术
  • 住房和城乡建设部网站共有产权最新资讯热点
  • 情侣做记录网站源码搜索引擎关键词竞价排名
  • 怎么用h5做网站友情链接源码
  • 让别人做网站推广需要多少钱app推广方案策划
  • jsp网站开发要求郑州seo管理
  • 广州电子商城网站建设360搜索引擎优化
  • 平谷武汉阳网站建设百青藤广告联盟
  • 手机网站的文本排版是怎么做的优化大师下载安装免费
  • 企业网站设计意义小果seo实战培训课程
  • 可以拿自己电脑做网站主机游戏推广平台哪个好
  • 电子线路板东莞网站建设重庆网站设计
  • 用ps做零食网站模板一键制作网站
  • 网站模板首页百度查询
  • 网站建设的常见技术有哪些推广网站的方法有哪些
  • 湖南省人民政府官方网站外包网络推广
  • 建设银行网银网站游戏推广可以做吗
  • 孔家庄网站建设湖北seo网站推广
  • 阿里巴巴国际站运营培训国际新闻网
  • php动态网站开发第5章答案seo推广专员工作好做吗