Skip to content

chore: update cos-lite tutorial#323

Draft
sed-i wants to merge 11 commits intomainfrom
feature/update-tutorial-cos-lite
Draft

chore: update cos-lite tutorial#323
sed-i wants to merge 11 commits intomainfrom
feature/update-tutorial-cos-lite

Conversation

@sed-i
Copy link
Copy Markdown
Contributor

@sed-i sed-i commented May 6, 2026

Issue

Tutorial was outdated.

Solution

Update tutorial, drop irrelevant cloud config script.

Checklist

  • I have added or updated relevant documentation.
  • PR title makes an appropriate release note and follows conventional commits syntax.
  • Merge target is the correct branch, and relevant tandem backport PRs opened.

Context

Testing Instructions

Upgrade Notes

Comment thread terraform/cos-lite/README.md
Comment thread docs/tutorial/cos-lite-canonical-k8s-sandbox.md Outdated
Comment thread docs/tutorial/cos-lite.tf Outdated
sed-i and others added 2 commits May 6, 2026 15:07
Co-authored-by: Michael Thamm <mike.thamm@canonical.com>
Signed-off-by: Leon <82407168+sed-i@users.noreply.github.com>
Signed-off-by: Leon <82407168+sed-i@users.noreply.github.com>
@MichaelThamm
Copy link
Copy Markdown
Contributor

MichaelThamm commented May 6, 2026

@sed-i I noticed you have some failing unit tests. Terraform v0.15.0 was recently released and is more strict for variable validation. This will need to be fixed in our monorepo Terraform files, not here. You can merge this PR on 🔴. I will PR the fix for this in another PR.

Copy link
Copy Markdown
Contributor

@YanisaHS YanisaHS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should say it's with Terraform either in the title or in the intro

I didn't go through it super closely otherwise - but I'm happy to help with them more after the engineering sprint :)

Comment on lines 103 to 108
alertmanager 0.27.0 active 1 alertmanager-k8s latest/edge 158 10.152.183.34 no
catalogue active 1 catalogue-k8s latest/edge 83 10.152.183.128 no
grafana 9.5.3 active 1 grafana-k8s latest/edge 146 10.152.183.110 no
loki 2.9.6 active 1 loki-k8s latest/edge 193 10.152.183.108 no
prometheus 2.52.0 active 1 prometheus-k8s latest/edge 240 10.152.183.55 no
traefik 2.11.0 active 1 traefik-k8s latest/edge 236 10.152.183.211 no Serving at 10.211.88.149
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This juju status output is heavily outdated. We should update this

$ juju deploy cos-lite --trust
```shell
terraform init
terraform apply
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
terraform apply
terraform apply -var="model=cos-lite"


```bash
$ terraform init
$ terraform apply # verify the changes you're applying before accepting!
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$ terraform apply -var="model=cos-lite" # verify the changes you're applying before accepting!


write_files:
- source:
uri: https://github.com/canonical/observability-stack/raw/refs/heads/main/tests/integration/cos/tls_internal/track-dev.tf
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see what you are trying to do, but we are not fully ready to move in this direction because it would require a refactor of our itests to get away from Jubilant creating the models. Whereas, in our docs we want to use resource "juju_model" "cos" instead of data ....

See this PR:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants