Skip to content

shimpa1/akash-services-monitoring

Repository files navigation

A fluent-bit configmap, daemonset and all the relevant config files designed to catch, label and ship logs and events from akash-services namespace to a Loki instance.

Make sure to update the CLUSTER_NAME to match your own value in files fluent-bit-daemonset-akash-services.yaml and fluent-bit-configmap-akash-services-k8s.yaml or fluent-bit-configmap-akash-services-k3s.yaml

Make sure to set the target in the output sections of the fluent-bit-configmap-akash-services-k3s.yaml file.

kubectl -n monitoring create job fluent-bit-init --image=busybox -- /bin/sh -c "mkdir -p /var/lib/fluent-bit"

kubectl apply -f fluent-bit-service-acct.yaml

kubectl apply -f fluent-bit-clusterrole.yaml

kubectl apply -f fluent-bit-clusterrole-binding.yaml

Then, depending on your architecture use either the K8S or the K3S configmap:

kubectl apply -f fluent-bit-configmap-akash-services-k8s.yaml

And last, apply the daemonset:

kubectl apply -f fluent-bit-daemonset-akash-services.yaml

Watch the reload process: kubectl -n monitoring rollout status ds/fluent-bit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published