-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcharmcraft.yaml
73 lines (63 loc) · 1.64 KB
/
charmcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Copyright 2024 Canonical Ltd.
# See LICENSE file for licensing details.
name: loki-worker-k8s
type: charm
assumes:
- k8s-api
- juju >= 3.4.5
summary: Loki for Kubernetes clusters.
description: |
Grafana Loki is an open source software project that provides a scalable long-term storage for Prometheus.
This charm deploys and operates Loki on Kubernetes clusters
links:
website: https://charmhub.io/loki-worker-k8s
source: https://github.com/canonical/loki-worker-k8s-operator
issues: https://github.com/canonical/loki-worker-k8s-operator/issues
documentation: https://discourse.charmhub.io/t/loki-worker-k8s-operator-docs-index/15536
bases:
- build-on:
- name: ubuntu
channel: "22.04"
run-on:
- name: ubuntu
channel: "22.04"
parts:
charm:
charm-binary-python-packages:
- "pydantic>=2"
- "cryptography"
- "jsonschema"
requires:
loki-cluster:
interface: loki_cluster
limit: 1
storage:
loki-persisted:
type: filesystem
description: Mount point in which Loki will store data.
containers:
loki:
resource: loki-image
mounts:
- storage: loki-persisted
location: /loki/persisted
resources:
loki-image:
type: oci-image
description: OCI image for Grafana Loki
upstream-source: docker.io/ubuntu/loki:3.0-22.04
# Based on: https://grafana.com/docs/loki/latest/get-started/deployment-modes/#simple-scalable
config:
options:
role-read:
type: boolean
default: false
role-write:
type: boolean
default: false
role-backend:
type: boolean
default: false
role-all:
type: boolean
default: false