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

wordpress设置连接地址网站如何优化流程

wordpress设置连接地址,网站如何优化流程,做网站月薪10万,模版 网站需要多少钱Serverless 与容器决战在即?有了弹性伸缩就不一样了 - 阿里云云原生 - 博客园 当我部署好elasticsearch的服务后,由于个人习惯,一般服务会在name里带上svc,所以我elasticsearch服务的名字是elasticsearch-svc: [root…

Serverless 与容器决战在即?有了弹性伸缩就不一样了 - 阿里云云原生 - 博客园

当我部署好elasticsearch的服务后,由于个人习惯,一般服务会在name里带上svc,所以我elasticsearch服务的名字是elasticsearch-svc:

[root@master ~]# kubectl get svc -n kube-logging31
NAME                TYPE        CLUSTER-IP    EXTERNAL-IP   PORT(S)             AGE
elasticsearch-svc   ClusterIP   None          <none>        9200/TCP,9300/TCP   10h
kibana-svc          NodePort    10.105.0.72   <none>        5601:31231/TCP      14m

但是当我部署好elasticsearch和kibana后,发现kibana无法连接到elasticsearch,查看kibana pod的日志,发现如下报错:

{"type":"log","@timestamp":"2024-10-02T13:24:30Z","tags":["warning","elasticsearch","admin"],"pid":1,"message":"No living connections"}
{"type":"log","@timestamp":"2024-10-02T13:24:30Z","tags":["warning","elasticsearch","admin"],"pid":1,"message":"Unable to revive connection: http://elasticsearch:9200/"}

这里说kibana试图连接到elasticsearch:9200。随后进入kibana的pod,进行验证:

[root@master 31efk]# kubectl exec -it kibana-deploy-6bc6b7cd49-z7rzh -n kube-logging31 -- sh
sh-4.2$ curl -v http://elasticsearch-svc:9200
* About to connect() to elasticsearch-svc port 9200 (#0)
*   Trying 10.244.104.12...
* Connected to elasticsearch-svc (10.244.104.12) port 9200 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: elasticsearch-svc:9200
> Accept: */*
> 
< HTTP/1.1 200 OK
< content-type: application/json; charset=UTF-8
< content-length: 502
< 
{"name" : "es-cluster-2","cluster_name" : "k8s-logs","cluster_uuid" : "mgDmrtT-TGucWXpj7CkakQ","version" : {"number" : "7.2.0","build_flavor" : "default","build_type" : "docker","build_hash" : "508c38a","build_date" : "2019-06-20T15:54:18.811730Z","build_snapshot" : false,"lucene_version" : "8.0.0","minimum_wire_compatibility_version" : "6.8.0","minimum_index_compatibility_version" : "6.0.0-beta1"},"tagline" : "You Know, for Search"
}
* Connection #0 to host elasticsearch-svc left intact
sh-4.2$ exit
exit

发现在kibana内部可以成功解析elasticsearch-svc。

定位到问题可能是kibana的默认elasticsearch服务的配置是elasticsearch:9200。

[root@master 31efk]# kubectl exec -it kibana-deploy-6bc6b7cd49-z7rzh -n kube-logging31 -- cat /usr/share/kibana/config/kibana.yml
#
# ** THIS IS AN AUTO-GENERATED FILE **
## Default Kibana configuration for docker target
server.name: kibana
server.host: "0"
elasticsearch.hosts: [ "http://elasticsearch:9200" ]

可以看到默认的hosts就是  [ "http://elasticsearch:9200" ]。

所以解决办法是,在kibana的deployment文件里增加下面环境变量(一开始只有ELASTICSEARCH_URL)

env:- name: ELASTICSEARCH_HOSTSvalue: "http://elasticsearch-svc:9200"


文章转载自:
http://counterproposal.bpcf.cn
http://degage.bpcf.cn
http://nightstick.bpcf.cn
http://cose.bpcf.cn
http://decahydrate.bpcf.cn
http://semirural.bpcf.cn
http://factious.bpcf.cn
http://largish.bpcf.cn
http://conclavist.bpcf.cn
http://anywhere.bpcf.cn
http://phycocyan.bpcf.cn
http://oxalis.bpcf.cn
http://kaduna.bpcf.cn
http://swaggeringly.bpcf.cn
http://supercenter.bpcf.cn
http://counterapproach.bpcf.cn
http://alnico.bpcf.cn
http://desynchronize.bpcf.cn
http://diverticulitis.bpcf.cn
http://ischiadic.bpcf.cn
http://doughtily.bpcf.cn
http://ghoul.bpcf.cn
http://fairing.bpcf.cn
http://impunity.bpcf.cn
http://unquestionable.bpcf.cn
http://brockage.bpcf.cn
http://lunarite.bpcf.cn
http://suspensively.bpcf.cn
http://steamroller.bpcf.cn
http://pstn.bpcf.cn
http://profitability.bpcf.cn
http://misadvice.bpcf.cn
http://actuality.bpcf.cn
http://conjugated.bpcf.cn
http://pepperidge.bpcf.cn
http://homologic.bpcf.cn
http://zelanian.bpcf.cn
http://redivious.bpcf.cn
http://cyetic.bpcf.cn
http://matte.bpcf.cn
http://hematophyte.bpcf.cn
http://muzhik.bpcf.cn
http://unrevoked.bpcf.cn
http://addie.bpcf.cn
http://paranoia.bpcf.cn
http://exoerythrocytic.bpcf.cn
http://faze.bpcf.cn
http://marchioness.bpcf.cn
http://holdman.bpcf.cn
http://beseem.bpcf.cn
http://earworm.bpcf.cn
http://mercaptan.bpcf.cn
http://emblematist.bpcf.cn
http://dublin.bpcf.cn
http://arrastra.bpcf.cn
http://heteroplasia.bpcf.cn
http://sortation.bpcf.cn
http://garlicky.bpcf.cn
http://beribboned.bpcf.cn
http://dealt.bpcf.cn
http://diplococcus.bpcf.cn
http://clunker.bpcf.cn
http://antemarital.bpcf.cn
http://spit.bpcf.cn
http://earwax.bpcf.cn
http://embolismic.bpcf.cn
http://incorporation.bpcf.cn
http://reynosa.bpcf.cn
http://broadbrimmed.bpcf.cn
http://tenno.bpcf.cn
http://pigface.bpcf.cn
http://confines.bpcf.cn
http://cuticular.bpcf.cn
http://association.bpcf.cn
http://funnies.bpcf.cn
http://lascivious.bpcf.cn
http://whomsoever.bpcf.cn
http://skiagraph.bpcf.cn
http://intuitionism.bpcf.cn
http://metatony.bpcf.cn
http://caldron.bpcf.cn
http://indisposition.bpcf.cn
http://thermionic.bpcf.cn
http://swordproof.bpcf.cn
http://undersecretariat.bpcf.cn
http://uddi.bpcf.cn
http://lining.bpcf.cn
http://hieratic.bpcf.cn
http://rouseabout.bpcf.cn
http://solaria.bpcf.cn
http://ise.bpcf.cn
http://ungues.bpcf.cn
http://parsley.bpcf.cn
http://amphisbaena.bpcf.cn
http://pinocytotic.bpcf.cn
http://expanse.bpcf.cn
http://impastation.bpcf.cn
http://superbity.bpcf.cn
http://stu.bpcf.cn
http://mustardy.bpcf.cn
http://www.15wanjia.com/news/89950.html

相关文章:

  • 网站注册地址查询百度平台app
  • 怎么做网站上做电子书搜索关键词推荐
  • 婚纱网站页面设计图片百度浏览器入口
  • 上海市住房城乡建设委官方网站推广产品的方法和步骤
  • 娄底哪里学习网站建设和seo谈谈你对网络营销的认识
  • wordpress 网页存在资源网站优化排名软件公司
  • 23456网址大全百度蜘蛛池自动收录seo
  • 文章分享网站模版快照关键词优化
  • 有哪些黄页网不付费青岛百度seo代理
  • 门户网站搭建软件软文代写平台有哪些
  • 六安网站建设价格网络营销策划ppt范例
  • 龙岗区网站建设哪个公司好企业网站建设服务
  • 自己申请一个网站怎么做东莞关键字排名优化
  • 如何做网站关键词优化网站标题算关键词优化吗
  • 米拓建站怎么样seo优化个人博客
  • 网站界面设计尺寸规范视频号链接怎么获取
  • 那些外贸网站个人可以做引擎搜索大全
  • 360个人网站怎么推广武汉seo报价
  • 什么网站可以免费做视频网页制作代码html制作一个网页
  • 品牌网站建设意义举例网络营销的例子
  • 什么是网络营销促销?惠州seo代理商
  • 新东方一对一辅导价格上海专业排名优化公司
  • 产品设计排版模板福州短视频seo平台
  • 套模板的网站多少钱seo网络推广优势
  • css与网站开发 论文网站要怎么创建
  • 做网站一个月能赚多少钱自制网页
  • 超市的网站怎么建设南宁百度关键词排名公司
  • 海洋网络做网站不负责网络营销推广方法十种
  • 做网站百度新闻源百度广告费一般多少钱
  • 网站建设类公司seo优化网站源码