Hello,
I have Grafana installed in Kubernetes as a pod and all grafana yaml files setup.
I need to know how to get Loki 1.6.0 or 1.6.1 setup as pod and installed so I can add Loki as datasource.
Do I only need to have the loki yaml file and Promtail yaml files?
What is needed for this to work?
Thanks,
freddie2019
Hi Freddie - for Kubernetes deployments, the Loki team has suggested referencing their Tanka (our take on ksonnet) file which helps break up Loki into microservices:
---
title: Tanka
---
# Install Loki with Tanka
[Tanka](https://tanka.dev) is a reimplementation of
[Ksonnet](https://ksonnet.io) that Grafana Labs created after Ksonnet was
deprecated. Tanka is used by Grafana Labs to run Loki in production.
## Prerequisites
Install the latest version of Tanka (at least version v0.5.0) for the `tk env`
commands. Prebuilt binaries for Tanka can be found at the [Tanka releases
URL](https://github.com/grafana/tanka/releases).
In your config repo, if you don't have a Tanka application, create a folder and
call `tk init` inside of it. Then create an environment for Loki and provide the
URL for the Kubernetes API server to deploy to (e.g., `https://localhost:6443`):
```
This file has been truncated. show original
Also just in case you’re using using Amazon EKS for your deployment - we did have a recent write up on the blog for setting up Loki for that: https://grafana.com/blog/2020/07/21/loki-tutorial-how-to-send-logs-from-eks-with-promtail-to-get-full-visibility-in-grafana/