These Kubernetes resources deploy a recent Graylog2 cluster on Kubernetes in #yolo mode without any persistence – The ideal way to quickly run, inspect and adapt a Graylog cluster in Kubernetes. The Deployment will install:
- Graylog 2.4.0
- Elasticsearch 5.6.3
- Kibana 5.6.3
- To install Graylog, download the YAML-files
- Change the
<SOME_GRAYLOG_SECRET_WITH_AT_LEAST_16_CHARS>
to a secret only known to you. - To access your Graylog/Elasticsearch/Kibana stack from outside of Kubernetes (like from your browser), you need a running Ingress controller like Traefik and ideally a wildcard domain pointing at Traefik (
*.k8s.yoursite.io
). - Replace
<YOUR_EXTERNAL_GRAYLOG_URL>
,<YOUR_EXTERNAL_ELASTICSEARCH_URL>
and<YOUR_EXTERNAL_KIBANA_URL>
with the ones pointing at your Ingress controller. Examples:http://graylog.k8s.yoursite.io
http://elasticsearch.k8s.yoursite.io
http://kibana.k8s.yoursite.io
- Point the GELF-Appender in your apps to:
- From outside of Kubernetes, point at
graylog.k8s.yoursite.io:12201
- From outside of Kubernetes, point at
graylog-service:12201
- From outside of Kubernetes, point at
Yoiu can log in to Graylog using the default admin:admin
password. And yes, you should change that ... have fun analyzing your logs :-)
More about Graylog: http://docs.graylog.org/en/latest/pages/installation/docker.html
More about Kubernetes: https://kubernetes.io/docs/home/