Repository navigation
feature: images update themselves, Traefik binds the host's ports so backends see real client addresses, and on k3s 1.37 the Gateway API CRDs are left to k3s - #731
Merged
Conversation
…nalIP kube-proxy answers the node's InternalIP itself, so the tests never went through ServiceLB, which masquerades every other address. The new servicelb upgrade test and the unit tests cover Traefik binding the host's ports.
…t's address k3s ServiceLB masquerades, so behind it every request came from its pod whenever traffic arrived on an address other than the node's InternalIP.
…es the pod With host ports the old pod stops before its replacement exists, so a slow or refused pull would leave nothing serving. Failed kubectl lookups now stop the install instead of being read as answers.
…to k3s's own chart, and hands over the ones it installed before the upgrade
… keeps taking no arguments
…hecks pass, and each major release opens a PR to review
…ainst its sha256, instead of through GitHub's rate-limited API
This was referenced Nov 4, 2026
Closed
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.
Three related changes to how the panel serves traffic and keeps its images current, in one PR so they merge together. Refs #717.
Traefik binds the host's ports (was #728)
install_traefiksetshostPortfrom HTTP_PORT/HTTPS_PORT, rollouts replace the pod in place, and a new Traefik image is pulled onto its node before the rollout.move_traefik_to_host_portsmoves it onto the ports (update.sh, dev.sh).On k3s 1.37 and later, the Gateway API CRDs are left to k3s
gateway-api-crdchart, even with--disable=traefik, and takes them from any other release. A fresh install on 1.37 failed with "belongs to the Helm release gateway-api-crd".gateway-crds0.2.0 adds agatewayApivalue. Where k3s's chart exists,install_traefikinstalls it withgatewayApi: false, so only Traefik's CRDs are installed. On older k3s nothing changes.update.sh. They're markedhelm.sh/resource-policy: keepfirst: without that, Helm deletes thesafe-upgradespolicy when the release drops it, and k3s doesn't recreate it. If k3s's chart is later turned off,gateway-crdstakes the objects back.K3S_BEFORE_GATEWAY_API(1.36.5) covers the ingress-nginx upgrade and the newk3s_upgrade_test.sh, which upgrades k3s in place on the same datastore the wayrancher/k3s-upgradedoes.Images update themselves (was #729)
.github/scripts/image_updates.shkeeps a tag'sv, its number of version parts and its suffix (-alpine,-pg18), so prereleases and other builds never match. A pinned digest is re-pinned to the new tag's. cert-manager, the system-upgrade-controller's vendored files and the TimescaleDB test fixtures only move by hand.kustomize downloads
setup_kustomizedownloads kustomize 5.8.3's release archive and checks it against the sha256 its release published. Kustomize's install script looked the release up through GitHub's API, which refuses after 60 anonymous requests an hour per address. That failed gateway jobs on shared CI runners, and since its exit status was ignored, the job only failed later, when the binary was missing. The old comment's claim that the script verified a checksum wasn't true.Notes
gateway-crds0.2.0, which codepier needs before it can skip the Gateway API CRDs on k3s.gatewaychart's defaults are now ClusterIP with no host ports, andinstall_traefiksets the ports. Its published version stays 0.1.0, so codepier, the only other consumer and one that installs it with default values, is unaffected. The next timegateway's version is bumped, codepier has to pass ports, or the defaults need to work without the panel.