Git Product home page Git Product logo

k8s-elastic's Introduction

k8s-elastic

利用K8S部署ELK服务(v7.2.0)

部署Elasticsearch

es-master索引文件存放在/var/lib/docker/data/es/master目录下,es-data索引文件存放在/var/lib/docker/data/es/data目录下,以pvc挂载至容器内部/usr/share/elasticsearch/data目录,启动命令及es配置参数在YAML文件中进行配置。

# 创建物理文件夹
mkdir /var/lib/docker/data/es/master
mkdir /var/lib/docker/data/es/data

# 创建namespace
kubectl apply -f ns.yml

# 创建私有仓库权限
kubectl create secret docker-registry regcred-elastic --docker-server=dockerhub-pr.yeshj.com --docker-username=xxx --docker-password=xxx --docker-email=xxx -n ns-elastic

# 创建es服务
kubectl apply -f es-service.yml
kubectl apply -f es-master.yml
kubectl apply -f es-data.yml

# 验证es服务
curl -s http://localhost:29200

部署Kibana

kibana配置文件定义在YAML文件中。

# 创建kibana服务
kubectl apply -f kibana.yml

# 验证kibana服务
curl -s http://localhost:25601

部署Gohangout

gohangout配置文件定义在ConfigMap中。

# 创建gohangout服务
kubectl apply -f gohangout-dnsmasq-k8s.yml

部署Logstash

logstash配置文件定义在ConfigMap中。

# 创建logstash服务
kubectl apply -f logstash-named-k8s.yml

参考文档

k8s-elastic's People

Contributors

zhoufwind avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.