Giter VIP home page Giter VIP logo

simple-k8s-elasticsearch's Introduction

Single Node ELK on the Kubernetes

Whhat is this?

Builds a simple ELK single cluster on Kubernetes. Suitable for development especially Ruby.

Required

  • Kubernetes v1.14 later.
  • Space must be reserved for Local Volume to use.
$ ssh k8s-node
$ sudo mkdir -p /mnt/disks/vol1
$ sudo chmod 777 /mnt/disks/vol1

How to use

$ kubectl config get-contexts
$ sudo chmod a+x ./create.sh
$ ./create.sh

Attributes

Namespace: elasticsearch
StatefulSet: elasticsearch
Deployment: logstash,kibana,apm-server

Service:
logstash: Internal 5044 / NodePort 30014
elasticsearch: Internal 9200 / NodePort 31001
kibana: Internal 5601 / NodePort 31000

FYI

Use Elasticsearch plugins

Edit Dockerfile and build&push container for your Docker registry.

# Plugin install
RUN bin/elasticsearch-plugin install --batch repository-s3

# keysstore
RUN bin/elasticsearch-keystore create
RUN echo "S3_ACCESS_KEY" | bin/elasticsearch-keystore add s3.client.default.access_key
RUN echo "S3_SECRET_KEY" | bin/elasticsearch-keystore add s3.client.default.secret_key
$ docker build -t sample.com/elasticsearch:latest .
$ docker push sample.com/elasticsearch:latest

And change image on kubernetes/elasticsearch-statefulset.yaml like:

containers:
  - name: es-client
    image: sample.com/elasticsearch:latest

simple-k8s-elasticsearch's People

Contributors

bon10 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.