HTTP Request LEGO (K8s)
- Canonical Telco
Channel | Revision | Published | Runs on |
---|---|---|---|
latest/stable | 99 | 28 Aug 2024 | |
latest/candidate | 99 | 28 Aug 2024 | |
latest/beta | 99 | 28 Aug 2024 | |
latest/edge | 101 | 02 Oct 2024 |
juju deploy httprequest-lego-k8s
Deploy Kubernetes operators easily with Juju, the Universal Operator Lifecycle Manager. Need a Kubernetes cluster? Install MicroK8s to create a full CNCF-certified Kubernetes system in under 60 seconds.
Platform:
Integrate with COS
In this guide, we will cover how-to integrate the LEGO charm with Canonical Observability Stack (COS) for Logging. Here we assume that LEGO is deployed in a Kubernetes model.
Pre-requisites:
- Juju >= 3.4
1. Deploy COS Lite
Create a model for observability:
juju add-model cos
Deploy cos lite:
juju deploy cos-lite --trust
Create an offer for the logging interface:
juju offer cos.loki:logging
2. Integrate with COS
Switch to the model in which the LEGO charm is deployed:
juju switch <your lego model>
Deploy Grafana Agent:
juju deploy grafana-agent-k8s
Integrate the LEGO charm with Grafana Agent:
juju integrate <lego charm>:logging grafana-agent-k8s
Consume the COS offers:
juju consume cos.loki
Integrate Grafana Agent with COS:
juju integrate loki:logging grafana-agent-k8s:logging-consumer
4. Access Logs
Switch to the cos model:
juju switch cos
Retrieve the Grafana admin password:
juju switch cos
juju run grafana/leader get-admin-password
Log in Grafana’s dashboard, navigate to “Explore” and select Loki as the source.