A fully working Helm Chart of Graylog Open Source.
This setup deploys a minimal Graylog stack with:
hostpath-provisionerIt 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.
kubectl CLI configuredhelm installedhostpath-provisioner installed from ArtifactHubGenerate 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
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
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
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
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
Access the Graylog UI:
http://[your-node-ip]:30900
After completing the initial setup wizard, log in with username admin and the password you set in Step 3.
To uninstall the chart, use this command:
helm uninstall -n graylog graylog
To delete all of the related PV and PVCs, use the following command:
kubectl delete -n graylog pv,pvc --all