github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/tools/dev/k3d/README.md (about)

     1  # Deploy Loki to k3d for Local Development
     2  
     3  ## Pre-requisites 
     4  
     5  In order to use the make targets in this directory, make sure you have the following tools installed:
     6  * [kubectl](https://kubernetes.io/docs/tasks/tools/)
     7  * [k3d](https://k3d.io/v4.4.8/)
     8  * [tanka](https://github.com/grafana/tanka)
     9  * [jsonnet](https://jsonnet.org/)
    10  * [jq](https://stedolan.github.io/jq/)
    11  
    12  **Note**: in case docker is unable to resolve the local k3d registry hostname, add the following entry to the `/etc/hosts` file:
    13  ```
    14  127.0.0.1 k3d-grafana
    15  ```
    16  
    17  ## Spinning Up An Environment
    18  
    19  Each environment has it's own make target. To bring up `loki-distributed`, for example, run:
    20  
    21  ```bash
    22  make loki-distributed
    23  ```
    24  
    25  ## Tearing Down An Environment
    26  
    27  The `down` make target will tear down all environments.
    28  
    29  ```bash
    30  make down
    31  ```