Repository navigation
feat(coder/templates): add kubernetes-airgapped template - #1207
Open
coder[bot] wants to merge 1 commit into
Open
coder[bot] wants to merge 1 commit into
coder[bot] wants to merge 1 commit into
Conversation
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.
Adds
registry/coder/templates/kubernetes-airgapped, a Kubernetes starter template that makes no outbound internet calls during template push, workspace build, or workspace startup.The existing Kubernetes template looks like a good fit for air-gapped POCs, but it pulls from Docker Hub,
registry.coder.com, andcode-server.devon the first build. Each of those then has to be found and worked around during a customer POC.What's different from
coder/kubernetescoder/kubernetescoder/kubernetes-airgappedcoder ~> 2.0,kubernetes ~> 3.0) so they can be mirroredcode-serverfromregistry.coder.com(installs code-server at runtime)codercom/example-base:ubuntu(Docker Hub)image_pull_secretcoder_scriptstarts the code-server already baked into the image (--disable-telemetry --disable-update-check); can be turned offextensions_galleryfor an internal mirrorThe README covers:
terraform providers mirrorplus a.terraformrcTesting
terraform init && terraform validatepass (coder 2.x, kubernetes 3.x)bun run fmtmade no changes;go run ./cmd/readmevalidationpassesdocker run --network none. code-server started and/healthzresponded.Follow-up
Air-gapped deployments can't reach registry.coder.com, so the in-product starter templates (embedded from
coder/coder/examples/templates) are what these customers actually see. Embedding a copy there would be a separate PR in coder/coder.Generated with Superblink (Coder's Slack assistant) using Claude, at the request of @stirby.