# Kubernetes Loki Server > logger collection ## deploy loki server ```sh kubectl apply -f ./loki ``` ## deploy loki agent, promtail or fluent-bit ```sh kubectl apply -f ./promtail ``` ## deploy grafana ui ```sh kubectl apply -f ./grafana ``` To get the admin password for the Grafana pod, run the following command: ```sh kubectl get secret --namespace loki-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo ``` ```sh kubectl port-forward --namespace service/loki-grafana 3000:80 ``` Navigate to http://localhost:3000 and login with admin and the password output above. Then follow the instructions for adding the loki datasource, using the URL http://loki:3100/.