Git Product home page Git Product logo

graylog-kubernetes-mongo's Introduction

graylog-kubernetes-mongo

graylog cluster in kubernetes (with MongoDB)

Steps to install graylog cluster

1. Make sure kubectl is up and working , connecting to kubenetes

2a. Run graylog cluster with Clustered mongo With replication and EBS persistent volume

  kubectl create -f ha-mongo-volume.yaml,elasticsearch-deployment.yaml,elasticsearch-service.yaml,graylog-service.yaml,graylog-deployment.yaml,ha-mongo-headless-service.yaml,ha-mongo-statefulset.yaml

2a. Deleting the mongo cluster with replication (if you need to cleanup above):

  kubectl delete -f ha-mongo-volume.yaml,elasticsearch-deployment.yaml,elasticsearch-service.yaml,graylog-service.yaml,graylog-deployment.yaml,ha-mongo-headless-service.yaml,ha-mongo-statefulset.yaml

Cleanup:

  kubectl delete pvc mongo-persistent-storage-mongo-0 mongo-persistent-storage-mongo-1 mongo-persistent-storage-mongo-2 -n graylog
After Creating Mongo Cluster
Connect to cluster and run rs.initiate()

2b. Run graylog cluster with single instance of mongo and EBS persistent volume

kubectl create -f ha-mongo-volume.yaml,ha-mongo-claim.yaml,elasticsearch-deployment.yaml,elasticsearch-service.yaml,graylog-service.yaml,graylog-deployment.yaml,mongo-deployment.yaml,mongo-service.yaml

3. Update AWS loadbalancer created by graylog service

kubectl get svc graylog -n graylog

Copy the aws loadbalancer created:

(ex: ac19231203981012938012312319203-129380129830.us-west-2.elb.amazonaws.com):

Edit the deployment of the graylog service and paste into WEB_ENDPOINT_URI

kubectl edit deployment graylog -n graylog

name: GRAYLOG_WEB_ENDPOINT_URI
value: http://ac19231203981012938012312319203-129380129830.us-west-2.elb.amazonaws.com/api

4. Forward port 9000

 kubectl port-forward graylog-3226681439-97w36 9000:9000

graylog-kubernetes-mongo's People

Contributors

beeyeas avatar cryptophobia avatar

Watchers

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