网站域名已经解析但没有被百度等搜索引擎收录怎么办,外贸app网站开发,表白小程序制作,网站推广的平台排名提示#xff1a;文章写完后#xff0c;目录可以自动生成#xff0c;如何生成可参考右边的帮助文档 文章目录 前言一、准备elasticsearch-cluster.yaml二、部署并测试总结 前言
之前写了eck2.4部署eskibana#xff0c;默认的话是https协议的#xff0c;这里写一个使用http… 提示文章写完后目录可以自动生成如何生成可参考右边的帮助文档 文章目录 前言一、准备elasticsearch-cluster.yaml二、部署并测试总结 前言
之前写了eck2.4部署eskibana默认的话是https协议的这里写一个使用http协议的配置。 参考文章链接: Kubernetes基于ECK部署elasticsearch8.8集群 首先按照https的部署方式部署crd和operator。 链接: k8s使用ECK2.4形式部署elasticsearchkibana
一、准备elasticsearch-cluster.yaml
#创建namespace
apiVersion: v1
kind: Namespace
metadata:name: daxinxindahaohao---
#快速启动es集群
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:name: quickstartnamespace: daxinxindahaohao
spec:version: 8.7.1nodeSets:- name: defaultcount: 1config:cluster.name: elasticsearchnode.store.allow_mmap: false# 打开跨域访问http.cors.enabled: truehttp.cors.allow-origin: *# 关闭https访问xpack.security.enabled: falsexpack.security.http.ssl.enabled: falsepodTemplate:spec:containers:- name: elasticsearchenv:# 修改探针访问方式为http- name: READINESS_PROBE_PROTOCOLvalue: http---
#增加专属的service不修改quickstart已有的service
kind: Service
apiVersion: v1
metadata:name: quickstart-es-internal-http-nodeportnamespace: daxinxindahaohaolabels:common.k8s.elastic.co/type: elasticsearchelasticsearch.k8s.elastic.co/cluster-name: quickstart
spec:ports:- name: httpprotocol: TCPport: 9200targetPort: 9200nodePort: 30806selector:common.k8s.elastic.co/type: elasticsearchelasticsearch.k8s.elastic.co/cluster-name: quickstarttype: NodePortsessionAffinity: NoneipFamilies:- IPv4ipFamilyPolicy: SingleStackinternalTrafficPolicy: Cluster---增加了跨域的配置 http.cors.enabled: true http.cors.allow-origin: “*” 增加了关闭https的配置 xpack.security.enabled: false xpack.security.http.ssl.enabled: false 增加了探针的http协议 name: READINESS_PROBE_PROTOCOL value: http
二、部署并测试 总结
使用http的话要关闭es的https配置同时还要把探针的协议修改掉。要不探针会报错。