GithubHelp home page GithubHelp logo

mateothegreat / k8-byexamples-elasticsearch-cluster Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 1.0 20 KB

Elasticsearch on k8 -- straight to the point, simple execution.

Home Page: https://matthewdavis.io

License: MIT License

Makefile 100.00%
kubernetes kubernetes-cluster kubernetes-manifests elasticsearch

k8-byexamples-elasticsearch-cluster's Introduction

Clickity click Twitter Follow Skype Contact

Elasticsearch

k8 by example -- straight to the point, simple execution.

Getting started

Clone this repo and initialize submodules:

git clone https://github.com/mateothegreat/k8-byexamples-elasticsearch-cluster && cd $_
git submodule update --init

Environment Variables

NS                      ?= default
SERVICE_ACCOUNT         ?= elasticsearch-service-account
ELASTICSEARCH_HOST      ?= elasticsearch
PORT_HTTP               ?= 9200
PORT_TRANSPORT          ?= 9300
CLUSTER_NAME            ?= cluster
NUMBER_OF_MASTERS       ?= 1
NUMBER_OF_CLIENTS       ?= 1
ES_JAVA_OPTS            ?= -Xms256m -Xmx256m
ES_PLUGINS_INSTALL      ?= "repository-gcs,ingest-user-agent"

Usage

$ make help

Usage:

  make <target>

Targets:

  manifests            Output manifests detected (used with make install, delete, get, describe, etc)
  install              Installs manifests to kubernetes using kubectl apply (make manifests to see what will be installed)
  delete               Deletes manifests to kubernetes using kubectl delete (make manifests to see what will be installed)
  get                  Retrieves manifests to kubernetes using kubectl get (make manifests to see what will be installed)
  describe             Describes manifests to kubernetes using kubectl describe (make manifests to see what will be installed)

Install

$ make install

[ INSTALLING MANIFESTS/ES-CLIENT.YAML ]: deployment "es-client" created
[ INSTALLING MANIFESTS/ES-DATA.YAML ]: deployment "es-data" created
[ INSTALLING MANIFESTS/ES-DISCOVERY-SVC.YAML ]: service "elasticsearch-discovery" created
[ INSTALLING MANIFESTS/ES-MASTER.YAML ]: deployment "es-master" created
[ INSTALLING MANIFESTS/ES-SVC.YAML ]: service "elasticsearch" created

Testing

$ make test

curl http://elasticsearch:9200/

{  "name" : "es-client-77b9c8465f-lrsth",
  "cluster_name" : "cluster",
  "cluster_uuid" : "27_5x9EITdWQuiZ31N3shA",
  "version" : {
    "number" : "6.1.2",
    "build_hash" : "5b1fea5",
    "build_date" : "2018-01-10T02:35:59.208Z",
    "build_snapshot" : false,
    "lucene_version" : "7.1.0",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}

curl http://elasticsearch:9200/_cat/indices?pretty

green open .kibana             DYwSiEEnTGmxDoGhM3R91Q 1 1    2 0 20.3kb 10.1kb
green open logstash-2018.02.18 CBZTdN6NSleDdePt3nv1AA 5 1 3472 0  3.3mb  1.5mb

Delete

 make delete

[ DELETING MANIFESTS/ES-CLIENT.YAML ]: deployment "es-client" deleted
[ DELETING MANIFESTS/ES-DATA.YAML ]: deployment "es-data" deleted
[ DELETING MANIFESTS/ES-DISCOVERY-SVC.YAML ]: service "elasticsearch-discovery" deleted
[ DELETING MANIFESTS/ES-MASTER.YAML ]: deployment "es-master" deleted
[ DELETING MANIFESTS/ES-SVC.YAML ]: service "elasticsearch" deleted

See also

k8-byexamples-elasticsearch-cluster's People

Contributors

mateothegreat avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

gabriellaw

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.