Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/tools/dev/k3d
Susana Ferreira 00d5142c40
Helm: add sleep argument to helm makefile on local development (#8502)
3 years ago
..
charts Add tooling for local k3d clusters under tools/dev (#5272) 4 years ago
environments/helm-cluster [helm] Single binary object storage (#8284) 3 years ago
lib Add local k3d environment for enterprise-logs (#7146) 3 years ago
scripts Add empty k3d cluster for testing helm chart (#7984) 3 years ago
vendor Add tooling for local k3d clusters under tools/dev (#5272) 4 years ago
.gitignore Add local k3d environment for enterprise-logs (#7146) 3 years ago
Makefile Helm: add sleep argument to helm makefile on local development (#8502) 3 years ago
README.md [helm] Fix self-monitoring tenant secret (#8198) 3 years ago
chartfile.yaml Add local k3d environment for enterprise-logs (#7146) 3 years ago
jsonnetfile.json Add tooling for local k3d clusters under tools/dev (#5272) 4 years ago
jsonnetfile.lock.json Update GEL plugin in k3d env to latest (#8378) 3 years ago

README.md

Deploy Loki to k3d for Local Development

Pre-requisites

In order to use the make targets in this directory, make sure you have the following tools installed:

Note: in case docker is unable to resolve the local k3d registry hostname, add the following entry to the /etc/hosts file:

127.0.0.1 k3d-grafana

Spinning Up An Environment

Each environment has it's own make target. To bring up loki-distributed, for example, run:

make loki-distributed

Tearing Down An Environment

The down make target will tear down all environments.

make down

Helm

The helm-cluster environment is designed for spinning up a cluster with just Grafana and Prometheus Operator that can be helm installed into. First spin up the cluster, then run the make targets for installing the desired configuration.

Enterprise Logs

  1. make helm-cluster

  2. make helm-install-enterprise-logs

    This step will take a while. The provisioner is dependent on the tokengen job and for the Admin API to be in a healthy state. Be patient and it will evenutally complete. Once the provisioner job has completed, the Loki Canaries will come online, and Grafana will start, as both are waiting on secrets provisioned by the provisioner.