Repository navigation
docs: add a single-node guide with MicroK8s - #252
Merged
Merged
Conversation
Install MicroK8s with the addons that TESK needs, install the chart with a minimal values file, run a hello-world task and remove everything again. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
Reviewer's GuideDocumentationAdd the single-node MicroK8s guide and link to it from the deployment page and Guides navigation.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #252 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 229 229
=========================================
Hits 229 229 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
uniqueg
marked this pull request as ready for review
November 7, 2026 07:27
Contributor
There was a problem hiding this comment.
Hey - I've found 4 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="docs/microk8s.md" line_range="65" />
<code_context>
+and the storage class are ready:
+
+```bash
+microk8s config > microk8s-kubeconfig
+export KUBECONFIG=$PWD/microk8s-kubeconfig # in Fish: set -x KUBECONFIG $PWD/microk8s-kubeconfig
+microk8s kubectl get nodes
</code_context>
<issue_to_address>
**Local users gain cluster access**
When the shell's umask makes the generated file readable by other users or the checkout is staged, `microk8s config > microk8s-kubeconfig` stores cluster credentials in a file readable to local users, and staging the checkout publishes them; those users can administer the cluster.
Create the kubeconfig with owner-only permissions and keep it out of staged changes.
</issue_to_address>
### Comment 2
<location path="docs/microk8s.md" line_range="65" />
<code_context>
+and the storage class are ready:
+
+```bash
+microk8s config > microk8s-kubeconfig
+export KUBECONFIG=$PWD/microk8s-kubeconfig # in Fish: set -x KUBECONFIG $PWD/microk8s-kubeconfig
+microk8s kubectl get nodes
</code_context>
<issue_to_address>
**Existing local files are overwritten or deleted**
When the checkout already contains one of the guide's fixed-name files, shell redirection truncates an existing `microk8s-kubeconfig` or `hello.json`, and cleanup removes the named files; following the guide with same-named files already in the checkout destroys their contents.
Use a dedicated temporary directory or check for existing files and choose unused names before writing or removing them.
Also at `docs/microk8s.md:124`, `docs/microk8s.md:170`.
</issue_to_address>
### Comment 3
<location path="docs/microk8s.md" line_range="66" />
<code_context>
+
+```bash
+microk8s config > microk8s-kubeconfig
+export KUBECONFIG=$PWD/microk8s-kubeconfig # in Fish: set -x KUBECONFIG $PWD/microk8s-kubeconfig
+microk8s kubectl get nodes
+microk8s kubectl get storageclass
</code_context>
<issue_to_address>
**Commands lose configured cluster**
When the user already has `KUBECONFIG` set before following the guide, `export KUBECONFIG=...` replaces the existing value, and cleanup's `unset KUBECONFIG` does not restore it; subsequent `kubectl` or Helm commands use the default context instead of the user's configured cluster.
Restore the previous `KUBECONFIG` value during cleanup, or scope the change so it does not alter the user's shell.
Also at `docs/microk8s.md:169`.
</issue_to_address>
### Comment 4
<location path="docs/microk8s.md" line_range="104-105" />
<code_context>
+started, the Ingress answers `502 Bad Gateway`:
+
+```bash
+kubectl get pods -n tesk # the pod of tesk-api is Running and READY 1/1
+curl http://localhost/ga4gh/tes/v1/service-info
+```
+
</code_context>
<issue_to_address>
**API check races startup**
When the API pod becomes ready before the API has finished starting, `kubectl get pods` can report the API pod as `Running` and `READY 1/1` before the application is ready because the Deployment has no readiness probe. The following one-shot `curl` then gets the documented 502 instead of service info, so the guide's check fails during normal startup.
Poll the service-info endpoint until it succeeds, or provide a wait step that does not treat pod readiness alone as API readiness.
</issue_to_address>Linked issues
#12 Write document how to setup TESK using microk8s · 1 of 1 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Write a document explaining how to set up TESK using MicroK8s. | ✅ Met | docs/microk8s.md covers installing MicroK8s and required addons, deploying TESK, running a task, and cleanup. |
Sourcery assessment
Approval pending. 4 findings to address first.
Blocking findings: docs/microk8s.md:65, docs/microk8s.md:65, docs/microk8s.md:66, docs/microk8s.md:105
Keep the kubeconfig private and outside the checkout, pass the values and the task inline, and poll the service info. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This was referenced Nov 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
docs/microk8s.md, a short single-node guide: install MicroK8s with the addonsdns,hostpath-storageandingress, install the chart from the repo with a minimal values file (camelCase keys), run a hello-world task with curl and poll it toCOMPLETE, and remove everything. Linked from the nav (Guides) and from the installation section ofdocs/deployment.md. No equivalent guide existed (only a NodePort note for Minikube/kind indeployment.md); the single-node guide belongs in this repo'sdocs/, next to the chart.Closes elixir-cloud-aai/docs#12
Verification
mkdocs build --strict: passes.helm upgrade --installwith the values file of the guide, Ingress reachable,service-infoanswered, hello-world task wentQUEUED->RUNNING->COMPLETE, stdoutHello, TESK!. The cluster was deleted afterwards.public, ports 80/443 on the host,snap remove --purge), as MicroK8s needs root and snap, not available here. The guide marks this in a note.Light lane (docs only): I reviewed the diff myself.
Declined review findings
None (no reviewer subagents in the light lane).
Open questions
None.
🤖 Generated with Claude Code
Summary by Sourcery
Add documentation for running TESK on a single MicroK8s node.
New Features:
Documentation: