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
Trevor Whitney dac3b84d08
Loki cloud integration instructions (and necessary mixin changes) (#8492)
3 years ago
..
charts Add tooling for local k3d clusters under tools/dev (#5272) 4 years ago
environments/helm-cluster Loki cloud integration instructions (and necessary mixin changes) (#8492) 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 Loki cloud integration instructions (and necessary mixin changes) (#8492) 3 years ago
README.md Helm enterprise-logs: update kubernetes secrets creation (#8467) 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

The installation step executes a set of jobs required for the enterprise-logs deployment:

  1. The tokengen job generates an admin-api token, stores it in the object storage and creates a Kubernetes secret.
  2. The provisioner job depends on the tokengen job to create the Kubernetes secret and on the Admin API to be in a healthy state. The tokengen Kubernetes secret will be used to create the input admin resources via the Admin API. Afterwards, a new Kubernetes secret for each newly generated token is created.
  3. Both the Loki Canaries and Grafana depend on the secrets provisioned by the provisioner. Therefore, once the provisioner job is completed, these components will become online.