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

wordpress怎么升级全国推广优化网站

wordpress怎么升级,全国推广优化网站,云南网站建设哪家好,wordpress 微信商城模板上篇文章我们完成了,ES的集群部署,如果还没有看过上篇文章的兄弟,可以去看看。 ELK学习笔记(一)——使用K8S部署ElasticSearch8.15.0集群 话不多说,接下来直接进入kibana的搭建 一、下载镜像 #1、下载官方…

上篇文章我们完成了,ES的集群部署,如果还没有看过上篇文章的兄弟,可以去看看。
ELK学习笔记(一)——使用K8S部署ElasticSearch8.15.0集群
话不多说,接下来直接进入kibana的搭建

一、下载镜像

#1、下载官方镜像
docker pull kibana:8.15.0
#2、打新tag
docker tag kibana:8.15.0 192.168.9.41:8088/new-erp-common/kibana:8.15.0
#3、推送到私有仓库harbor
docker push 192.168.9.41:8088/new-erp-common/kibana:8.15.0

二、创建工作目录

mkdir -p /home/ec2-user/k8s/elk/kibana

kibana的yaml文件目录:/home/ec2-user/k8s/elk/kibana

kibana的安全证书文件目录:/home/ec2-user/k8s/elk/kibana/certs
在这里插入图片描述

三、准备yaml配置文件

3.1重置密码(密码忘记时可选)

当es集群搭建好之后,用kubectl exec -it 进去到任一es容器内部,运行下方命令重置elastic账号 与 kibana-system(kibana专用)账号的密码

$ kubectl get pod -n renpho-erp-common|grep elastic
elasticsearch-0                       1/1     Running   0          3d21h
elasticsearch-1                       1/1     Running   0          3d21h
elasticsearch-2                       1/1     Running   0          3d21h# ec2-user @ k8s-master in ~/k8s/elk/kibana [4:14:42] 
$ kubectl exec -it elasticsearch-0 -n renpho-erp-common -- /bin/sh
sh-5.0$ pwd
/usr/share/elasticsearch
#重置elasticsearch密码
sh-5.0$ ./bin/elasticsearch-reset-password -u elastic
This tool will reset the password of the [elastic] user to an autogenerated value.
The password will be printed in the console.
Please confirm that you would like to continue [y/N]yPassword for the [elastic] user successfully reset.
New value: sJdEWgos4+O3Ay*lgt
#重置kibana密码
sh-5.0$ ./bin/elasticsearch-reset-password -u kibana_system
This tool will reset the password of the [kibana] user to an autogenerated value.
The password will be printed in the console.
Please confirm that you would like to continue [y/N]yPassword for the [kibana_system] user successfully reset.
New value: fo*6-ggA59Fk*CYQG4Df

记住此密码,下面kibana.yml中需要用到。或者使用./bin/elasticsearch-reset-password -u kibana_system -i自定义密码

修改密码时可能会遇到权限问题,比如执行./bin/elasticsearch-reset-password -u elastic时,出现

sh-5.0$ ./bin/elasticsearch-reset-password -u elastic
WARNING: Owner of file [/usr/share/elasticsearch/config/users] used to be [root], but now is [elasticsearch]
WARNING: Owner of file [/usr/share/elasticsearch/config/users_roles] used to be [root], but now is [elasticsearch]

This tool will reset the password of the [elastic] user to an autogenerated value.
The password will be printed in the console.
Please confirm that you would like to continue [y/N]

ERROR: User cancelled operation, with exit code 0
在这里插入图片描述

3.2准备ConfigMap配置

创建ConfigMap配置,里面主要配置了kibana.yml需要的配置

  • server.publicBaseUrl、server.host
    可以根据自己的需要填写,我习惯都是挂个域名然后通过内网配个hosts来访问
  • elasticsearch.hosts 配置kibana访问ES集群的地址,这里用的就是ES service的访问地址
  • elasticsearch.password 是我们之前设定的kibana_system账号的密码
$ cat config-map-kibana.yaml 
apiVersion: v1
kind: ConfigMap #配置信息
metadata:name: config-map-kibana #kibana配置namespace: renpho-erp-common
data:kibana.yml: |#服务器端口#server.publicBaseUrl:server.port: 5601server.host: "0.0.0.0"server.shutdownTimeout: "5s"monitoring.ui.container.elasticsearch.enabled: trueelasticsearch.hosts: [ "https://elasticsearch.renpho-erp-common.svc.cluster.local:9200" ]#让 Kibana 连接到 Elasticsearch 时不验证 SSL 证书的有效性elasticsearch.ssl.verificationMode: noneelasticsearch.ssl.certificateAuthorities: [ "/usr/share/kibana/config/local-certs/elasticsearch-ca.pem" ]server.ssl.enabled: trueserver.ssl.certificate: /usr/share/kibana/config/local-certs/kibana.crtserver.ssl.key: /usr/share/kibana/config/local-certs/kibana.key#访问es服务器账号密码,可以进到es pod中执行./bin/elasticsearch-reset-password -u kibana_system重置密码elasticsearch.username: "kibana_system"elasticsearch.password: "fo*6-ggA59Fk*CYQG4Df"# =================== System: Logging ===================logging.root.level: info# Example with size based log rotationlogging.appenders.default:type: rolling-filefileName: /usr/share/kibana/logs/kibana.logpolicy:type: time-intervalstrategy:type: numericpattern: '-%i'max: 10layout:type: json# Specifies locale to be used for all localizable strings, dates and number formats.# Supported languages are the following: English (default) "en", Chinese "zh-CN", Japanese "ja-JP", French "fr-FR".i18n.locale: "zh-CN"

3.3准备Service及StatefulSet文件

$ cat deploy-kibana2.yaml 
apiVersion: v1
kind: Service
metadata:name: kibananamespace: renpho-erp-common
spec:ports:- port: 5601protocol: TCPtargetPort: 5601nodePort: 30091type: NodePortselector:app: kibana
---
apiVersion: apps/v1
kind: StatefulSet
metadata:name: kibananamespace: renpho-erp-commonlabels:app: kibana
spec:replicas: 1selector:matchLabels:app: kibanatemplate:metadata:labels:app: kibanaspec:containers:- name: kibanaimage: renpho.harbor.com/new-erp-common/kibana:8.15.0imagePullPolicy: IfNotPresentresources:limits:cpu: 1memory: 2Grequests:cpu: 0.5memory: 500Miports:- containerPort: 5601protocol: TCPvolumeMounts:- name: kibana-volumemountPath: /usr/share/kibana/datasubPath: kibana-data- name: kibana-volumemountPath: /usr/share/kibana/logssubPath: kibana-logs- name: kibana-cert-file  #挂载ssl证书目录mountPath: /usr/share/kibana/config/local-certs- name: kibana-config  #挂载配置文件mountPath: /usr/share/kibana/config/kibana.ymlsubPath: kibana.yml- name: host-time  #挂载本地时区mountPath: /etc/localtimereadOnly: truevolumes:- name: kibana-configconfigMap:name: config-map-kibanadefaultMode: 493 #文件权限为-rwxr-xr-x- name: kibana-cert-filesecret:secretName: kibana-certificates- name: host-timehostPath: #挂载本地时区path: /etc/localtimetype: ""volumeClaimTemplates:- metadata:name: kibana-volumespec:storageClassName: ssd-nfs-storageaccessModes: [ "ReadWriteMany" ]resources:requests:storage: 20Gi

四、开始用K8S部署Kibana

首先,看下kibana目录下的文件
在这里插入图片描述

4.1将安全证书添加到Secret中

kubectl create secret generic kibana-certificates  --from-file=/home/ec2-user/k8s/elk/kibana/certs/elasticsearch-ca.pem  --from-file=/home/ec2-user/k8s/elk/kibana/certs/kibana.crt  --from-file=/home/ec2-user/k8s/elk/kibana/certs/kibana.csr --from-file=/home/ec2-user/k8s/elk/kibana/certs/kibana.key -n renpho-erp-common

在这里插入图片描述

4.2运行Kibana

依次执行下列命令

#ES配置文件创建
kubectl apply -f config-map-kibana.yaml
#ES Service,StatefulSet创建
kubectl apply -f delpoy-kibana2.yaml
#查看运行状态
kubectl get pod -n renpho-erp-common|grep kibana

在这里插入图片描述
浏览器访问下面地址:https://renpho.master.com:30091/login,这时候需要输入elastic的账号登录进去
你也可以使用ip访问,例如https://192.168.6.220:30091/login。我这里是将192.168.6.220做了个伪域名renpho.master.com
在这里插入图片描述
登录进去后,通过kibana dev-tool一样可以查看ES集群状态
在这里插入图片描述
到此,使用K8s部署Kibana成功!


文章转载自:
http://dinnconofretete.zfyr.cn
http://dinncolase.zfyr.cn
http://dinncoinclination.zfyr.cn
http://dinncobowhunt.zfyr.cn
http://dinncodualistic.zfyr.cn
http://dinncopyrrhonic.zfyr.cn
http://dinncounadvanced.zfyr.cn
http://dinncoannum.zfyr.cn
http://dinncoquestion.zfyr.cn
http://dinncorushingly.zfyr.cn
http://dinncohomunculus.zfyr.cn
http://dinncobouillon.zfyr.cn
http://dinncoconcomitant.zfyr.cn
http://dinncooblate.zfyr.cn
http://dinncotendinitis.zfyr.cn
http://dinncocorticate.zfyr.cn
http://dinncosubconscious.zfyr.cn
http://dinncofiredamp.zfyr.cn
http://dinncomoulage.zfyr.cn
http://dinncoelectromotive.zfyr.cn
http://dinncofarmery.zfyr.cn
http://dinncoovercrust.zfyr.cn
http://dinncorunnel.zfyr.cn
http://dinncoretrovert.zfyr.cn
http://dinncopythagorean.zfyr.cn
http://dinncosheatfish.zfyr.cn
http://dinncowraparound.zfyr.cn
http://dinncosempervirent.zfyr.cn
http://dinncodaredevilry.zfyr.cn
http://dinncoantienergistic.zfyr.cn
http://dinncoowenism.zfyr.cn
http://dinncomonorail.zfyr.cn
http://dinncoduplex.zfyr.cn
http://dinncoyttric.zfyr.cn
http://dinncoroan.zfyr.cn
http://dinncocollegia.zfyr.cn
http://dinncoplastometer.zfyr.cn
http://dinncopicadillo.zfyr.cn
http://dinncosusceptible.zfyr.cn
http://dinncofamilistic.zfyr.cn
http://dinncoplutolatry.zfyr.cn
http://dinncosociogenic.zfyr.cn
http://dinncoelectrotherapist.zfyr.cn
http://dinncopyridoxine.zfyr.cn
http://dinncocircumsolar.zfyr.cn
http://dinncocatomountain.zfyr.cn
http://dinncomemorial.zfyr.cn
http://dinncotele.zfyr.cn
http://dinnconilometer.zfyr.cn
http://dinncosunlit.zfyr.cn
http://dinncounary.zfyr.cn
http://dinncoiyft.zfyr.cn
http://dinncobrowser.zfyr.cn
http://dinncodryest.zfyr.cn
http://dinncochloric.zfyr.cn
http://dinncodiffluence.zfyr.cn
http://dinncoblinkers.zfyr.cn
http://dinncofluffer.zfyr.cn
http://dinncoreverend.zfyr.cn
http://dinncotranssexualist.zfyr.cn
http://dinncoestrange.zfyr.cn
http://dinncosimplification.zfyr.cn
http://dinncomatriclinous.zfyr.cn
http://dinncomummy.zfyr.cn
http://dinncograined.zfyr.cn
http://dinncopeeper.zfyr.cn
http://dinncocachinnate.zfyr.cn
http://dinncoflicflac.zfyr.cn
http://dinncotrivial.zfyr.cn
http://dinncojuristic.zfyr.cn
http://dinncowusuli.zfyr.cn
http://dinncotaoism.zfyr.cn
http://dinncowhites.zfyr.cn
http://dinncoasa.zfyr.cn
http://dinncouncommunicative.zfyr.cn
http://dinncoyusho.zfyr.cn
http://dinncomanifestation.zfyr.cn
http://dinncoinsolubility.zfyr.cn
http://dinncovoudou.zfyr.cn
http://dinncokrain.zfyr.cn
http://dinncobillion.zfyr.cn
http://dinncogaper.zfyr.cn
http://dinncoting.zfyr.cn
http://dinncobrother.zfyr.cn
http://dinncoinfold.zfyr.cn
http://dinncofloppy.zfyr.cn
http://dinncolank.zfyr.cn
http://dinncoalgous.zfyr.cn
http://dinncobespangled.zfyr.cn
http://dinncomicropore.zfyr.cn
http://dinncovermicelli.zfyr.cn
http://dinncokaon.zfyr.cn
http://dinncounappealing.zfyr.cn
http://dinncotetramethyldiarsine.zfyr.cn
http://dinncobrail.zfyr.cn
http://dinncounderbudgeted.zfyr.cn
http://dinncoescallonia.zfyr.cn
http://dinncoliegeman.zfyr.cn
http://dinncooslo.zfyr.cn
http://dinncoquintillion.zfyr.cn
http://www.dinnco.com/news/132453.html

相关文章:

  • 做网站 图片显示不出来推广软文范文
  • 纺织品做外贸一般在哪个网站上企业网站的优化建议
  • 做我女朋友恶搞网站天津放心站内优化seo
  • 中企动力网站建设公司网站流量统计分析工具
  • 外贸网站建设服务器快速排名优化公司
  • 徐州 商城网站建设seo是什么字
  • 西安模板网站建站阿里巴巴国际站运营
  • wordpress手机端网站模板下载失败新乡网站推广
  • 网站记录登录账号怎么做沙坪坝区优化关键词软件
  • 做h的小说网站有哪些360建网站
  • 互助网站制作网页优化seo公司
  • 知名响应式网站企业私人做网站
  • 免费网站入口2021新闻20条摘抄大全
  • 摄影网站源码下载福州百度推广优化排名
  • 官方网站建设报价表高级seo是什么职位
  • 前端学习网站中国软文网官网
  • wordpress怎么改搜索自动seo系统
  • 服饰怎么做网站推广沙洋县seo优化排名价格
  • 国外photoshop素材网站广点通官网
  • 网站备案的幕布国外搜索引擎有哪些
  • 虚拟主机怎么发布网站吗网络营销策划方案框架
  • 为什么企业网站不是开源系统信息推广平台有哪些
  • 珠宝出售网站模板网页设计需要学什么
  • 可以自己制作头像的网站品牌线上推广方案
  • 自学网站建设好学吗苏州网站排名推广
  • 学前教育网站建设苏州网络公司
  • 做网站都需要数据库吗网站怎样才能在百度被搜索到
  • 做昆虫类论文网站软文内容
  • dedecms 关闭网站北京seo培训
  • 淘宝联盟推广网站建设河南关键词排名顾问