Appearance
Loki
This section shows all available options that can be overridden in the config.jsonnet
file.
All Loki config is stored under the loki object in the config.
js
{
loki+: {
annotations:: {
deployment: {},
pod: {},
},
env:: {},
image:: 'grafana/loki:2.8.1',
labels:: {
deployment: {},
pod: {},
selector: {'app.kubernetes.io/name': 'loki'},
},
name:: 'loki',
ports:: {
external: 80,
internal: 3100,
},
resources:: {
cpu: {request: '100m', limit: '1'},
memory: {request: '128Mi', limit: '512Mi'},
},
retention:: '672h',
},
}
Field | Description / Default |
---|---|
annotations.deployment | Annotations added at the deployment (topmost) level. {} |
annotations.pod | Annotations added at the pod level. {} |
env | Environment variables that are added to the Loki container. {} |
image | Docker image that gets deployed. grafana/loki:2.8.1 |
labels.deployment | Labels added at the deployment (topmost) level. {} |
labels.pod | Labels added at the pod level. {} |
labels.selector | Selector used for all Loki k8s resources. {'app.kubernetes.io/name': 'loki'} |
name | Name used for the k8s resources. loki |
ports.external | External port where Loki is exposed. 80 |
ports.internal | Internal port used inside the container. 3100 |
resources.cpu.request | Min. requested amount of CPU time. 100m |
resources.cpu.limit | Max. allowed amount of CPU time. 1 |
resources.memory.request | Min. requested amount of memory. 128Mi |
resources.memory.limit | Max. allowed amount of memory. 512Mi |
retention | Retention policy used for the log files (in hours). 672h |