Hi, all,
My team and I have been using Graylog for a while to monitor our services and are now working on migrating to a kubernetes cluster. However, I’ve run into a problem in deploying the Helm Chart.
After following the Manual Install Dependencies + Install Chart guide, mongodb and elasticsearch seem to be starting correctly but the Graylog init pod is stuck in a CrashLoop. The same thing happens when I run the Quick Installation.
graylog-0 0/1 Init:0/1 12 38m
graylog-0 0/1 Init:Error 12 38m
graylog-0 0/1 Init:CrashLoopBackOff 12 38m
Commands used:
helm install --namespace "graylog" -n "mongodb" stable/mongodb-replicaset
helm install --namespace "graylog" -n "elasticsearch" stable/elasticsearch
helm install --namespace "graylog" -n "graylog" stable/graylog --set tags.install-mongodb=false --set tags.install-elasticsearch=false --set graylog.mongodb.uri=mongodb://mongodb-mongodb-replicaset-0.mongodb-mongodb-replicaset.graylog.svc.cluster.local:27017/graylog?replicaSet=rs0 --set graylog.elasticsearch.hosts=http://elasticsearch-client.graylog.svc.cluster.local:9200
The logs seem to indicate the graylog server not starting, but I can’t figure out why this is the case.
λ kubectl logs -n graylog graylog-0
Error from server (BadRequest): container "graylog-server" in pod "graylog-0" is waiting to start: PodInitializing
λ kubectl logs -n graylog graylog-0 -c setup
Connecting to storage.googleapis.com (172.217.20.48:443)
wget: note: TLS certificate validation not implemented
saving to '/k8s/kubectl'
kubectl 7% |** | 3278k 0:00:11 ETA
kubectl 24% |******* | 9.9M 0:00:06 ETA
kubectl 40% |************ | 16.6M 0:00:04 ETA
kubectl 57% |****************** | 23.4M 0:00:03 ETA
kubectl 73% |*********************** | 30.1M 0:00:01 ETA
kubectl 89% |**************************** | 36.8M 0:00:00 ETA
kubectl 100% |********************************| 41.1M 0:00:00 ETA
'/k8s/kubectl' saved
chown: /usr/share/graylog/data/journal/.snapshot/hourly.2019-06-25_1205: Read-only file system
chown: /usr/share/graylog/data/journal/.snapshot/hourly.2019-06-25_1205: Resource temporarily unavailable
chown: /usr/share/graylog/data/journal/.snapshot/hourly.2019-06-25_1305: Read-only file system
chown: /usr/share/graylog/data/journal/.snapshot/hourly.2019-06-25_1305: Resource temporarily unavailable
chown: /usr/share/graylog/data/journal/.snapshot/hourly.2019-06-25_1105: Read-only file system
chown: /usr/share/graylog/data/journal/.snapshot/hourly.2019-06-25_1105: Resource temporarily unavailable
chown: /usr/share/graylog/data/journal/.snapshot: Read-only file system
chown: /usr/share/graylog/data/journal/.snapshot: Read-only file system
I’ve also brought this up on the Helm Chart GitHub page, and since this might primarily be a Kubernetes issue it is no sweat if it is outside the scope of this forum, always worth a shot though.
Please let me know if there is more information required.
Cheers,
Oscar