Commit Graph

4 Commits

Author SHA1 Message Date
Thomas Hallock 8362db4572 fix(keel): resolve DNS lookup failures with k3s CoreDNS
Go's pure-Go DNS resolver has incompatibilities with k3s's CoreDNS that
cause intermittent "server misbehaving" errors after the initial lookup.
This prevented Keel from polling ghcr.io for new image digests.

Setting GODEBUG=netdns=cgo forces Go to use the system's cgo DNS resolver,
which works correctly with k3s.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 16:07:43 -06:00
Thomas Hallock 1e43ec18f3 fix(infra): configure Keel to watch all namespaces
Add watchAllNamespaces=true to Keel helm config so it monitors
workloads in the abaci namespace (not just keel namespace).

Update documentation to clarify that Keel annotations must be on
the workload metadata, not the pod template.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 18:45:04 -06:00
Thomas Hallock c1809d72ae feat(infra): add ghcr.io registry credentials for Keel polling
Keel needs to authenticate with ghcr.io to poll for new image digests
(ghcr.io requires auth for manifest API even on public images).

- Add ghcr_token and ghcr_username variables
- Create docker-registry secret for ghcr.io
- Add imagePullSecrets to StatefulSet (Keel reads these for auth)
- Document the setup in keel.tf

To enable auto-updates:
1. Create GitHub PAT with read:packages scope
2. Set ghcr_token in terraform.tfvars
3. terraform apply

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 15:56:26 -06:00
Thomas Hallock ee26b1e361 feat(infra): add Keel for automatic k3s deployments
- Add Keel helm release that polls ghcr.io every 2 minutes
- Add keel.sh annotations to app StatefulSet for auto-updates
- Create comprehensive README.md documenting k3s architecture
- Update CLAUDE.md with automatic deployment workflow

After terraform apply, deployments are fully automatic:
push to main → build → Keel detects new image → rolling update

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 12:11:19 -06:00