install kubectl and doctl

  • kubectl:
  • doctl:

grafana loki

spin up grafana loki k8s cluster from do marketplace.

save cluster config

doctl kubernetes cluster list
doctl kubernetes cluster kubeconfig save <cluster_name>

get console admin passwd

kubectl get secret -n loki loki-grafana -o jsonpath="{.data.admin-password}" | base64 --decode

port-forward to access console

kubectl -n loki get pods
kubectl -n loki port-forward <loki-grafana_pod_name> 3000

navigate to grafana loki console