Skip to content

shafnir/Graylog-HelmChart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

44 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Graylog Logo

Graylog Open Helm Chart

Artifact Hub

A fully working Helm Chart of Graylog Open Source.

πŸ“Œ Overview

This setup deploys a minimal Graylog stack with:

  • Graylog Core
  • Graylog DataNode
  • Secrets Management
  • Persistent Volumes (PVCs) via hostpath-provisioner
  • NodePort Exposure

Additional Notes

It is highly recommended to change the default secret and password in values.yaml. Please go through all the values in values.yaml and change according to your needs.
Please review the allocated resources in the PVCs and the mongodb StatefulSet and ensure it matches your requirements.
This deployment is made for a small lab environment, it is recommened to increase the replicas, the allocated storage in the PVCs and the resource requests and limits of the datanode.

βš™οΈ Prerequisites

  • Kubernetes cluster (e.g. Minikube or real cluster)
  • kubectl CLI configured
  • helm installed
  • hostpath-provisioner installed from ArtifactHub

πŸš€ Deployment Steps

  1. Generate the graylogPasswordSecret for the values.yaml file, with the following command:

    < /dev/urandom tr -dc A-Z-a-z-0-9 | head -c${1:-96}; echo
  2. Generate the graylogRootPasswordSHA256 for the values.yaml file, with the following command:

    echo -n "Enter Password: " && head -1 </dev/stdin | tr -d '\n' | sha256sum | cut -d" " -f1
  3. After filling the values in the values.yaml, install the chart:

    helm repo add graylog https://shafnir.github.io/Graylog-HelmChart/graylog
    helm install graylog -n graylog graylog/graylog --version 0.1.0 --create-namespace
  4. Verify that pods are running:

    kubectl get pods -n graylog

    Example output:

    NAME                        READY   STATUS    RESTARTS   AGE
    datanode-5dcff9cffb-qf26r   1/1     Running   0          57m
    graylog-74558bdf5b-zcc8h    1/1     Running   0          61m
    mongodb-0                   1/1     Running   0          61m
  5. Retrieve the initial admin password from Graylog logs (based on the graylog pod name):

    kubectl logs -n graylog graylog-74558bdf5b-zcc8h

    You should see something like:

    Initial configuration is accessible at 0.0.0.0:9000, with username 'admin' and password 'bhQRFNUvIe'.
    Try clicking on http://admin:bhQRFNUvIe@0.0.0.0:9000
  6. Access the Graylog UI:

    http://[your-node-ip]:30900
    
  7. After completing the initial setup wizard, log in with username admin and the password you set in Step 3.


  1. To uninstall the chart, use this command:

    helm uninstall -n graylog graylog
  2. To delete all of the related PV and PVCs, use the following command:

    kubectl delete -n graylog pv,pvc --all

About

A fully functional Helm chart for Graylog Open Source on Kubernetes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published