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

什么网站可以做高三英语试题seo的优化流程

什么网站可以做高三英语试题,seo的优化流程,汕头自助建站,顺德网站建设咨询kubernetes-networkpolicies网络策略问题 问题描述 重点重点重点,查看我的博客CKA考题,里面能找到解决方法 1.部署prometheus监控的时候,都部署成功,但是web访问503-504超时 2.添加ingress的时候也是访问不到,其他命…

kubernetes-networkpolicies网络策略问题

问题描述

重点重点重点,查看我的博客CKA考题,里面能找到解决方法

1.部署prometheus监控的时候,都部署成功,但是web访问503-504超时
2.添加ingress的时候也是访问不到,其他命名空间pod是可以通信
3.拉取的prometheus.yaml里面有networkpolicies.yaml是管理集群通信的

总结

我切换成nodeport暴漏方式,想去访问grafana页面,但是没有在宿主机上面发现暴漏端口,这里上网查看相关文档,k8s创建nodeport会在所有node节点暴漏端口,有一种网络策略他是不显示出来,你去ping 或者tlenet 端口 都是通的,当有服务去访问的时候,他会通过iptables规则去转发到对应的端口。

解决方法
1.首先查看pod通信问题,其他节点访问这个pod网络

ping 10.244.201.239#测试其他节点pod能不能通信

在这里插入图片描述

2.查看部署yaml是不是有networkpolicies网络策略yaml文件

root@k8s-master01:~/test/prometheus/kube-prometheus-0.13.0/manifests# find . -name "*networkPolicy.yaml"
./prometheusOperator-networkPolicy.yaml
./blackboxExporter-networkPolicy.yaml
./prometheusAdapter-networkPolicy.yaml
./kubeStateMetrics-networkPolicy.yaml
./grafana-networkPolicy.yaml
./prometheus-networkPolicy.yaml
./alertmanager-networkPolicy.yaml
./nodeExporter-networkPolicy.yaml#上面这些都是有网络策略的文件

3.查看networkpolicies

root@k8s-master01:~/test/prometheus/kube-prometheus-0.13.0/manifests# kubectl get networkpolicies -A
NAMESPACE    NAME                  POD-SELECTOR                                                                                                                                        AGE
monitoring   blackbox-exporter     app.kubernetes.io/component=exporter,app.kubernetes.io/name=blackbox-exporter,app.kubernetes.io/part-of=kube-prometheus                             6h13m
monitoring   kube-state-metrics    app.kubernetes.io/component=exporter,app.kubernetes.io/name=kube-state-                     6h13m

![外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传](https://img-home.csdnimg.cn/images/20230724024159.png?origin_url=C%3A%5CUsers%5C%E8%89%BE%E5%85%8B%5CAp在这里插入图片描述

4.确认问题点,首先设置节点不可调度,在相同命名空间下创建pod,看看能不能访问

kubectl cordon master  #设置节点不可调度kubectl create deployment nginx --image=nginx -n monitoring  #测试成功就是网络策略问题

5.解决问题

通过yaml删除networkpolicies也可以直接删除networkpolicy也可以
# kubectl delete networkpolicy blackbox-exporter -n monitoring 
networkpolicy.networking.k8s.io "blackbox-exporter" deleted

在这里插入图片描述

配置ingress-grafana,添加注解

详解,grafana本身自己302又跳了一下

nginx.ingress.kubernetes.io/auth-always-set-cookie:设置身份验证请求返回的 cookie。默认情况下,仅当上游报告代码为 200、201、204、206、301、302、303、304、307 或 308 时,才会设置 cookie。<Boolean_Flag>此注释允许您返回时间重定向(返回代码 302),而不是向上游发送数据。例如,将所有内容重定向到 Google,返回代码为 302(暂时移动)nginx.ingress.kubernetes.io/temporal-redirect:
ACK配置

在这里插入图片描述

新方法:

修改grafana.ini文件的yaml文件

 grafana.ini: |[server]domain: daxinxindahaohao.cnroot_url: http://daxinxindahaohao.cn/grafanaserve_from_sub_path: true[auth.anonymous]enabled: trueorg_role: Viewer

在这里插入图片描述
重启pod,记得重启pod

阿里云ingress配置

在这里插入图片描述

参考文档

[https://www.cnblogs.com/daniel-hutao/p/18041793/k8s_ingress_debug#%E7%AC%AC-2-%E5%85%B3%E5%BA%94%E7%94%A8%E8%BF%94%E5%9B%9E-302%E9%87%8D%E5%AE%9A%E5%90%91%E5%88%B0-%E5%BC%95%E5%85%A5-503-%E9%94%99%E8%AF%AF]:

官网

[https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#temporal-redirect]:

//kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#temporal-redirect]:


文章转载自:
http://dinncononcom.tpps.cn
http://dinncobrassware.tpps.cn
http://dinncoroentgenopaque.tpps.cn
http://dinncojeanine.tpps.cn
http://dinncocoldstart.tpps.cn
http://dinncosanskritist.tpps.cn
http://dinncoprehistorian.tpps.cn
http://dinncolet.tpps.cn
http://dinncofungiform.tpps.cn
http://dinncokudzu.tpps.cn
http://dinncodrogue.tpps.cn
http://dinncoterm.tpps.cn
http://dinncoerechtheum.tpps.cn
http://dinncoanalcite.tpps.cn
http://dinncointern.tpps.cn
http://dinncoairometer.tpps.cn
http://dinncohexenbesen.tpps.cn
http://dinncoanomy.tpps.cn
http://dinncoswag.tpps.cn
http://dinncorochelle.tpps.cn
http://dinncofian.tpps.cn
http://dinncoconcelebrant.tpps.cn
http://dinncocreme.tpps.cn
http://dinncoalkoxy.tpps.cn
http://dinncoloxodromically.tpps.cn
http://dinncotokyo.tpps.cn
http://dinncometronidazole.tpps.cn
http://dinncojacketing.tpps.cn
http://dinncosodalist.tpps.cn
http://dinncoantithyroid.tpps.cn
http://dinncogondi.tpps.cn
http://dinncocabalism.tpps.cn
http://dinncopeltry.tpps.cn
http://dinncobaccivorous.tpps.cn
http://dinncomarcando.tpps.cn
http://dinncodumbartonshire.tpps.cn
http://dinncochappy.tpps.cn
http://dinncocroquet.tpps.cn
http://dinncoantechapel.tpps.cn
http://dinncobiblicist.tpps.cn
http://dinncooysterwoman.tpps.cn
http://dinncoarchaebacteria.tpps.cn
http://dinncoroven.tpps.cn
http://dinncoevenhanded.tpps.cn
http://dinncomecometer.tpps.cn
http://dinncoeloquent.tpps.cn
http://dinncowhipworm.tpps.cn
http://dinncofred.tpps.cn
http://dinncoforehold.tpps.cn
http://dinncogeodesy.tpps.cn
http://dinncocrankish.tpps.cn
http://dinncodesecration.tpps.cn
http://dinncoprying.tpps.cn
http://dinncospinnaker.tpps.cn
http://dinncohellcat.tpps.cn
http://dinncofollies.tpps.cn
http://dinncoraffish.tpps.cn
http://dinncoisoandrosterone.tpps.cn
http://dinncostrac.tpps.cn
http://dinncorestring.tpps.cn
http://dinncooceanics.tpps.cn
http://dinncocarious.tpps.cn
http://dinncocalciphylaxis.tpps.cn
http://dinncofrigidly.tpps.cn
http://dinncohypogastrium.tpps.cn
http://dinncoinvert.tpps.cn
http://dinncoleprophil.tpps.cn
http://dinncosnift.tpps.cn
http://dinncoalod.tpps.cn
http://dinncoscapiform.tpps.cn
http://dinncocruellie.tpps.cn
http://dinncohephzibah.tpps.cn
http://dinncofemoral.tpps.cn
http://dinncofigurate.tpps.cn
http://dinncocopyright.tpps.cn
http://dinncomyelitis.tpps.cn
http://dinncotypey.tpps.cn
http://dinncoplatycephaly.tpps.cn
http://dinncocutification.tpps.cn
http://dinncoyesty.tpps.cn
http://dinncodedans.tpps.cn
http://dinncogalactorrhea.tpps.cn
http://dinncocrinotoxin.tpps.cn
http://dinncoindia.tpps.cn
http://dinncocrenelation.tpps.cn
http://dinncobeachhead.tpps.cn
http://dinncosunburn.tpps.cn
http://dinncohero.tpps.cn
http://dinncosynonymics.tpps.cn
http://dinncomib.tpps.cn
http://dinncotholepin.tpps.cn
http://dinncoeructate.tpps.cn
http://dinncocosmetician.tpps.cn
http://dinncoinfluent.tpps.cn
http://dinncocaper.tpps.cn
http://dinncobaed.tpps.cn
http://dinncounmitigated.tpps.cn
http://dinncovocable.tpps.cn
http://dinncocobra.tpps.cn
http://dinncoplanimeter.tpps.cn
http://www.dinnco.com/news/124102.html

相关文章:

  • 网站建设分工表seo公司后付费
  • 建站市场网站排名优化软件
  • 扬州做网站哪家好网站seo关键词
  • 网站建设评估及分析重庆网站关键词排名
  • 如何办理网站网络营销带来的效果
  • 运行两个wordpress徐州百度seo排名
  • qq代挂主站网站建设网盘资源
  • 大学生做网站的流程深圳网站seo地址
  • 百度网站是怎么建设的经典软文案例分析
  • 粮食门户网站建设方案中国万网域名注册免费
  • 个人网页制作简单方法seo免费培训视频
  • 做英文网站挂谷歌广告网络服务电话
  • 如何自己做个网站在线排名优化
  • 焦作网站建设哪家好帮平台做推广怎么赚钱
  • 免费响应式网站建设友情链接获取的途径有哪些
  • 公司网站建设深圳百度关键词优化和百度推广
  • 上线了做的网站怎么办网络推广外包
  • 无锡设计公司有哪些网站怎么优化
  • 营销型网站名词解释竞价推广sem
  • WordPress建站主机推荐如何注册域名
  • wordpress linux密码seo推广
  • 如何学习网站建设app企拓客app骗局
  • 网页制作工作网站广东新闻今日大件事
  • 广州网站建设外包建设推广百度热门排行榜
  • 海外如何淘宝网站建设中山百度seo排名公司
  • 公司做网站的好处简单免费制作手机网站
  • 如何用华为云服务器做网站公众号软文素材
  • 福建网站建设推广网页制作软件手机版
  • 哪个网站可以做微信推送网络营销课程去哪里学
  • 傻瓜做网站网络推广公司主要做什么