Graylog-HelmChart

Graylog Logo

Graylog Open Helm Chart

A fully working Helm Chart of Graylog Open Source.

📌 Overview

This setup deploys a minimal Graylog stack with:

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

🚀 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 1.0.3 --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