《Elastic Stack 实战手册》——三、产品能力——3.4.入门篇——3.4.1.Elastic Stack 安装部署——3.4.1.8. ECK 安装(24) https://developer.aliyun.com/article/1231256
客户端写入数据:
curl -k -u elastic:L733hU98Y467IZMft4DzLq5m \ https://istio.elasticsearch.com:9200/my-index-istio/_doc\?pretty \ -X POST -H "Content-Type:application/json" \ -d '{"name":"tom","age":18} #返回结果 { "_index" : "my-index-istio", "_type" : "_doc", "_id" : "1", "_version" : 1, "result" : "created", "_shards" : { "total" : 2, "successful" : 2, "failed" : 0 }, "_seq_no" : 0, "_primary_term" : 1 } ......
客户端查询数据:
curl -k -u elastic:L733hU98Y467IZMft4DzLq5m \ https://istio.elasticsearch.com:9200/my-index-istio/_count\?pretty #返回结果 { "count" : 107, "_shards" : { "total" : 1, "successful" : 1, "skipped" : 0, "failed" : 0 } } ......
现在外部客户端已经可以通过 HTTPS 访问集群内部的 Elasticsearch 服务了。
清理现场
kubectl delete -f gateway-tls.yaml kubectl delete -f virtualservice-tls.yaml kubectl delete -f deploy-eck-istio kubectl delete namespace istio-demo helm uninstall -n istio-system istio-base istio-ingress istiod kubectl delete -f istio-1.11.1/samples/addons kubectl delete namespace istio-system
参考资料
l https://www.elastic.co/guide/en/cloud-on-k8s/1.7/index.html
l https://help.aliyun.com/knowledge_detail/189287.html
l https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-set-priority.html
l https://www.elastic.co/cn/blog/creating-frozen-indices-with-the-elasticsearch-freeze-index-api
l https://www.elastic.co/cn/blog/significantly-decrease-your-elasticsearch-heap-memory-usage
l https://www.elastic.co/guide/en/elasticsearch/plugins/7.14/repository-s3.html
l https://www.elastic.co/guide/en/cloud-on-k8s/1.7/k8s-service-mesh-istio.html
l https://istio.io/latest/zh/docs/tasks/observability/kiali/
l https://www.elastic.co/guide/en/cloud-on-k8s/1.7/k8s-licensing.html
l https://www.elastic.co/guide/en/cloud-on-k8s/1.7/k8s-autoscaling.html
l https://istio.io/latest/zh/docs/ops/deployment/architecture/
l https://istio.io/latest/zh/docs/concepts/what-is-istio/
创作人简介:程治玮,Elastic 认证工程师,关注 Elastic Stack 技术栈,大数据和云原生相关领域。
微信公众号:Se7en的架构笔记