Upgrading
Kubehenge itself, the management cluster and the workload clusters are upgraded separately, in this order.
- Kubehenge itself is the appliance's software, upgraded from the Administration page or the Proxmox VE shell.
- The management cluster is Talos, Kubernetes, Cluster API and its providers, and Kubehenge's ClusterClasses and controller. Applying it again moves them to the versions the new release carries.
- Workload clusters upgrade Kubernetes by hand or automatically inside an upgrade window. Their nodes' operating system moves to each week's build of the VM templates inside the same window.
Before 1.0.0, any release may change behaviour, a patch release included. Read its entry in the changelog first.
Kubehenge
From the Administration page
Administration in the top bar opens the Administration page, for those with the setup privileges on /. Its Kubehenge box shows:
- Installed is the running release.
- Newer releases lists those published since, or why they are unknown (the release index could not be fetched or checked).
- Last upgrade gives from which release to which, with the time. It also says when the installed release is already the newest allowed, when one is in progress, or why it failed.
Upgrade to <version> installs the newest release, once confirmed. The interface restarts and is unavailable for about a minute. The restart signs browsers out, but not kubehenge login. No upgrade starts while the management cluster is being applied or removed or a VM template is being built. A page left open across an upgrade says so and offers to reload.
Automatically
Automatic upgrades in the same box:
| Setting | Upgrades to |
|---|---|
| off | nothing (the default) |
| patch releases | the newest release of the installed minor version, such as 0.1.x |
| minor releases | the newest release of the installed major version, such as 0.x |
Hour picks the hour of the day (03:00 by default), in the Time zone below it. The zone starts out as the browser's when automatic upgrades are switched on. The interface checks once a day in that hour, never during a run of the management cluster or a template build.
Only Kubehenge's own software is upgraded, never the workload clusters. The management cluster follows only where its own automatic upgrades are on (below).
The release index
The updater accepts the release index, https://kubehenge.dev/releases/index.json, only if one of Kubehenge's release keys signed it and it has not expired.
- The public keys are built into each release and cannot be configured.
- The index expires two weeks after it was signed and is signed again every week (releasing.md).
- A mirror of the index and its signatures can be named with
KUBEHENGE_RELEASE_INDEX=<URL>in the appliance's/etc/kubehenge/appliance.env. The same checks apply to it, so a mirror has to copy the index at least weekly.
What is installed
The interface writes a request that kubehenge-update, a service running as root, carries out:
- It installs only a release named in that index, newer than the installed one, and only an archive matching the checksum in the index. It also installs the OpenTofu release that release names, checked the same way.
- It swaps the files by rename and restarts the interface. It holds the lock the management cluster's runs take, so an upgrade never cuts a run off and no run starts during an upgrade.
- It keeps the installed release aside until the new one answers on its own certificate within 2 minutes. The new one must then run 20 seconds without a restart.
- Otherwise, or if the restart fails, the updater restores the previous release and restarts it. The upgrade's error then reads
release … did not start: …; rolled back to ….
- Otherwise, or if the restart fails, the updater restores the previous release and restarts it. The upgrade's error then reads
From the Proxmox VE shell
install.sh upgrades an installed appliance too, and finds it in the cluster. In the shell of the node the appliance runs on, as root:
curl -fsSLO https://github.com/kubehenge/kubehenge/releases/latest/download/install.sh && sh install.sh --upgrade- It checks every download against the checksums it carries, as when installing (install.md).
--release <file> --sha256 <hex>installs a local archive instead. - With several appliances in the cluster, name one with
--ctid <id>. It refuses a container that is not Kubehenge's appliance (taggedkubehenge) and a release older than the installed one. The same release may be installed again. - It keeps the appliance's state, settings and certificate. It also keeps a newer OpenTofu that the appliance's own upgrades brought.
- It stops, changing nothing, while the management cluster is applied or removed, a VM template is built, or the appliance is upgraded.
- Like the updater, it keeps the installed release aside until the new one serves. Otherwise it rolls back and says
release … did not start: …. Rolled back to ….
API address, CA and certificate options
--proxmox-url <URL>moves the appliance to another address of the Proxmox VE API, such as once the node it names is removed. It checks the URL as an install does and stops, changing nothing, unless the container reaches it with a certificate it trusts.--proxmox-ca <file>replaces the CA the appliance checks the Proxmox VE API against. Use it after the API's certificate was replaced with one from another CA (install.md).- It stops, changing nothing, unless the API's certificate is one that CA signed.
- A file holding several certificates is reduced to those the API's certificate rests on.
- It also turns certificate verification back on where
--proxmox-insecureturned it off.
--proxmox-insecurehas the appliance stop verifying the Proxmox VE API's certificate.- Without these options the appliance keeps what it had.
After any of them, apply the management cluster again to carry the change to it and the clusters.
From the appliance's shell
kubehenge appliance inside the appliance does what the Administration page does, as a client of its interface. It acts as the Proxmox VE user kubehenge login signed in (signing in), so the same privileges and refusals apply. Inside the appliance, kubehenge login trusts the certificate the interface serves without --ca.
pct exec <ctid> -- kubehenge login https://127.0.0.1 --user root@pam --password-file /root/password
pct exec <ctid> -- kubehenge appliance upgrades
pct exec <ctid> -- kubehenge appliance upgrade 0.2.0upgrades shows the installed release, the newer ones and the last upgrade, with the reason when it failed or was rolled back. -o json or -o yaml prints the interface's answer as it is. upgrade asks the updater for a release, as Upgrade to does. kubehenge appliance health runs the check the updater and install.sh use, without signing in. It shows its stages as it goes (troubleshooting.md).
The management cluster
Each Kubehenge release pins the versions of Talos, Kubernetes, Cluster API, every provider and cert-manager together, as the set it has tested. Upgrading Kubehenge does not change the running management cluster. Applying it again does.
In the appliance
On the Administration page, the Management cluster section shows the settings of the last run. Apply again… applies them as they are, with the state's key the appliance keeps. Edit settings opens them for changes first. Where a passphrase is required, both ask for it. Applying again:
- upgrades Talos node by node, each drained first when there are several
- upgrades Kubernetes component by component
- upgrades each Cluster API provider through the Cluster API Operator, and Kubehenge's ClusterClasses and controller
- puts back anything that drifted from the settings
The same page can move the management cluster to other Proxmox VE nodes or add nodes to it. A VM given another node is migrated there.
Duration and failures
Applying again runs with your Proxmox VE session like the first run and takes about as long. The page follows the log. If it fails, the page shows the error and the log. Fix the cause and apply again.
When it is behind
The section's Version is the Kubehenge release of the last apply. Once Kubehenge has been upgraded past it, the top of the Administration page says Management cluster upgrade: 0.1.0 to 0.2.0.
Upgrade… beside it lists the components whose versions change, from the old to the new (Kubehenge's ClusterClasses and controller by its chart's version). It then applies the settings as they are, as Apply again… does.
What a running management cluster keeps
Node addresses can only be added, after the existing ones. A single node grows to three by adding two addresses after its own. A node given another address is cut off from Talos and etcd. A removed node leaves its etcd member behind.
The API address, gateway, pod and service ranges and the VM disks' storage cannot change. The interface shows them read-only and refuses such changes. With Terraform/OpenTofu nothing refuses them. Only append to node_addresses, and leave api_address, gateway, pod_subnets, service_subnets and vm_datastore as they are.
Anything else can change, such as the nodes the VMs run on, the bridge, DNS servers, registry mirrors, identity providers and what clusters may use.
When a release changes a ClusterClass
Applying such a release replaces the nodes of every cluster of that class, one at a time as for an upgrade. Each cluster therefore needs spare addresses.
The changelog says which classes a release changes. Apply such a release when the rollouts suit you.
Automatically after Kubehenge
Management cluster, under the automatic upgrades in the Kubehenge box, is Upgrade automatically from the first successful apply of the interface. The appliance then applies the management cluster again once it runs a newer Kubehenge release than the one that last applied it. The run happens:
- in the hour Kubehenge's own upgrades use (Hour, Time zone), whether or not those are on
- at most once a day, never during another run or a template build
- only after any Kubehenge upgrade asked for in the same hour has begun, so the run applies the newer release
- as an ordinary run, marked on the page as started automatically
A run that fails stays on the page with its error and log. It is tried again in the next day's hour, not before. Upgrade… runs it at once.
Set to Upgrade by hand, it stays off through later applies. kubehenge appliance management-upgrades --on or --off does the same.
What the appliance keeps
Nobody is signed in when the run starts, so the apply that switches it on has the appliance keep:
- the state passphrase, only where one is required. Otherwise the run uses the state's key the appliance keeps.
- an API token of a Proxmox VE user of its own,
kubehenge-upgrader@pve, made with your session. Without the setup privileges, it stays off, the page says why, and the next apply tries again.
Before it makes the user, the apply reads the version of libpve-access-control on every Proxmox VE node with your session. Older than 9.2.1, that package lets a user with rights over a group make a token that acts as any member of it. Automatic upgrades then stay off, and the page and kubehenge appliance upgrades name the node and the update. Once the nodes are updated, the next apply switches them on, unless you switched them off.
The user holds four roles of its own, never Administrator:
| Role | On | For |
|---|---|---|
KubehengeUpgraderAudit | /, and each path below that holds another of these roles | reading what the apply plans against |
KubehengeUpgrader | the management pool, its VM storage, its network, /nodes | changing the management cluster's VMs |
KubehengeUpgraderImages | the image storage | writing the VM templates the release brings |
KubehengeUpgraderTokens | the group kubehenge-tokens | reading the module's own API tokens |
It cannot change users, roles or ACLs. A release that does stops before applying and says so. Upgrade… runs it with your session.
Where they are kept
Both are kept sealed (AES-256-GCM) in a file in the appliance's state directory that only the interface's own user and root can read. The key that opens them is kept on a volume of its own (/var/lib/kubehenge-keys), which Proxmox VE's backups of the container leave out (backup=0).
An appliance restored from a backup has no key. The page says so, and Renew makes the user and its token anew.
Switching it off
Switching it off deletes the passphrase, then the user with its token, then the key. A switch-off cut short finishes when the interface next runs. Removing the management cluster does the same.
With Terraform/OpenTofu
Take the module from the new release's archive and apply it with the same variables and the same state:
tofu init -upgrade
tofu applyversion_overrides holds a component back below the tested set, by the keys in versions.tf. Lowering a version on a running cluster is not supported. Changing node_cores or node_memory_mb updates the VMs without rebooting them. Each node takes the new size at its next reboot. A Talos upgrade reboots one node at a time.
Workload clusters
By hand
Upgrade on a cluster's page offers the newest release of its own minor version when that is newer than the one running. It also offers the newest of the next minor version. Both come in the distribution's own form (v1.37.1, v1.37.1+rke2r1, v1.37.1+k3s1). They come from the same sources as automatic upgrades.
When there is neither, the version can be typed in. For kubeadm, the dialog asks for a template of a newer version first. The interface refuses skipping a minor version or going back.
The rollout
Cluster API replaces the control-plane nodes one by one, then the workers. Each new node is created before an old one is removed. The upgrade shows as a run, with each step and how many nodes it has replaced so far.

With kubectl, set spec.topology.version (clusters.md). The change prints the same findings as warnings, from what the controller read within the last hour, and goes through either way.
Warnings before an upgrade
The dialog warns of two things inside the cluster. A warning does not stop the upgrade. kubehenge cluster upgrade web --version v1.37.1 prints the same list and asks first, and --yes skips the question.
- Removed APIs. Deprecated APIs that the target version or an earlier one removes and a client requested in the last 7 days, counted hourly from first sight. Without request counts, the API server's gauge of all use since it started decides, and the dialog says so.
- Fail-closed webhooks. Webhooks with
failurePolicy: Fail(the default) whose Service has under two ready endpoints, or all of them on one node. Kubehenge's own add-ons and URL webhooks are left out.
Kubehenge reads both as the cluster's health identity, which may read /metrics, webhook configurations and endpoint slices. What cannot be read shows as Not checked.
Per distribution
- kubeadm nodes boot from a template built for their exact Kubernetes version. Create the template of the new version first (templates.md).
- RKE2 and k3s install the requested version when a node boots, from the same template.
- Talos nodes run the Kubernetes version Talos is told to, from the template of the cluster's Talos release.
- The new nodes move to that template with the upgrade once it is in the pool.
- A Kubernetes version the Talos release does not run needs a Talos upgrade first (clusters.md).
Automatically inside a window
Edit beside Automatic upgrades, in a cluster's Options, sets its upgrades variable. The create wizard can switch it on from the start.
| Field | Variable | What it is |
|---|---|---|
| Upgrade automatically | mode | off (the default). patch takes patch releases, the newest release of the cluster's minor version. minor takes patch and minor releases, so also the next minor version. |
| Update node images | nodeImages | kubeadm, RKE2 and k3s. On by default. Replaces the nodes with clones of each new template build once it is a day old, whatever mode says (below). |
| Apply Talos patch releases | nodeImages | Talos. On by default. Upgrades the nodes in place to the newest patch release of their Talos minor version (clusters.md). |
| Days | window.weekdays | Days of the week the window opens on. |
| Days of the month | window.monthDays | Such as 1, 15. A day listed here or in Days counts. Every day when both are empty. |
| From | window.start | When the window opens, HH:MM. 02:00 by default. |
| Duration (hours) | window.durationMinutes | How long it stays open, 30 minutes to 24 hours in half hours. Four hours by default. A window may run past midnight. |
| Time zone | window.timeZone | An IANA time zone, such as Europe/Berlin. Without one the window opens in the site time zone, else UTC. Switching automatic upgrades on in the dialog, or in the create wizard, starts from the site time zone, else the browser's. |
When it starts
Kubehenge's controller looks at every cluster every five minutes. It starts an upgrade only:
- inside the cluster's window
- with no removed API in use and no fail-closed webhook at risk (below)
- while the cluster is available, with every node at the same version and no rollout running
- one step at a time, the next once the cluster is settled again.
patchmode steps to the newest release of the cluster's minor version.minormode steps to the newest release of the next minor version once the distribution's stable release has reached it, otherwise aspatchdoes.- Where Rancher or the Talos release does not run the next minor version, the cluster keeps taking its own patch releases. It gets the condition
AutoUpgradeSkipped(troubleshooting.md).
- Where Rancher or the Talos release does not run the next minor version, the cluster keeps taking its own patch releases. It gets the condition
Cluster API then rolls the nodes as for any upgrade. A rollout that has started finishes even if the window closes. The last automatic upgrade shows in the cluster's Summary as Last automatic upgrade, recorded on the Cluster in the annotation kubehenge.dev/auto-upgraded.
Where the versions come from
| Distribution | Newest releases and stable minor version |
|---|---|
| RKE2, k3s | the distribution's own release channels. The management cluster's nodes need to reach them. |
| kubeadm | the newest version a kubeadm template on Proxmox VE exists for. Building a template of a newer version offers it. |
| Talos | Kubernetes' own newest release of each minor version (dl.k8s.io). The stable one is what the Talos release Kubehenge carries installs by default. Never one the cluster's Talos release does not run, and never while its nodes are being upgraded. |
Releases Kubehenge does not pin
RKE2 and k3s nodes install only releases whose checksum file and install script Kubehenge pins, and the API server refuses any other. The newest releases are in the build. For a release that is not, an administrator adds a pin from Administration, Templates, Release pins, or with kubehenge release pin <version>.
Signed in with kubehenge login, both commands go through the interface with the login's rights, and need no KUBECONFIG. Without a login they use the management cluster's KUBECONFIG, as on the appliance and in automation.
Both fetch the release's checksum file from the distribution's release page and show its SHA-256 digests before saving. A version that does not exist or has no checksum file is refused. Each pin records who added it. A pin is removed with Unpin or kubehenge release unpin <version>, and only while no cluster runs that release. The pins built into Kubehenge stay.
Talos releases are pinned too. A Talos patch reaches clusters with the Kubehenge release that pins it.
Pinning with kubectl
The pins are one key of the ConfigMap kubehenge-release-pins in the namespace of the ClusterClasses. The admission check and the release channels read it beside the built-in list. Only administrators may write it.
apiVersion: v1
kind: ConfigMap
metadata:
name: kubehenge-release-pins
namespace: kubehenge-system
data:
pins: |
v1.37.1+rke2r1 <SHA-256 of the checksum file> <SHA-256 of the install script> # added by alice at 2026-11-07T09:00:00ZEach line is a version, the checksum file's digest and the install script's digest. The comment is optional.
The nodes' operating system
The management cluster builds the node OS VM templates again every week, with the updates each node OS published since (templates.md). The controller moves the nodes of each cluster with nodeImages on to the newest build that is at least a day old. It does so inside the cluster's window, under the same conditions as an upgrade.
It sets the cluster's node image time (the annotation kubehenge.dev/node-image) to now. Every machine template then selects that build. Cluster API replaces the nodes one at a time. A Kubernetes upgrade due at the same time comes first. The nodes it creates are already clones of the newest build.
Changing a cluster's node OS (its nodeOS variable, under Options) replaces its nodes the same way. It happens at once rather than in the window, once the new node OS's template is built.
Last and next refresh
The last move shows in the cluster's Summary as Last node refresh, recorded in the annotation kubehenge.dev/node-image-refreshed.
While a newer build waits for the window, the annotation kubehenge.dev/node-image-held names the build and when the window opens, such as build-202610180100 at 2026-10-24T00:00:00Z. The Summary shows it as Next node refresh, which names the build the move takes when the window opens. It is gone once the move starts.
Rolling a build out now
Administration, VM templates, Roll out now on a build moves the clusters on its line to it at once, outside their windows and before the day's wait. Its dialog names the clusters. It is off while any cluster on the line is busy, and says which. Clusters with nodeImages off stay.
kubehenge template rollout rke2 --build build-202610180100
kubectl annotate cluster my-cluster kubehenge.dev/node-image-rollout=build-202610180100Signed in with kubehenge login, the command asks the interface, which needs no KUBECONFIG.
All three ask the controller for the move the schedule makes, which it makes once the cluster is settled. The request is checked when it is written. It is refused for a build the cluster's lines do not have, and for a Talos cluster. The controller removes it when the nodes have moved or already run that build.
Holding and deleting builds
To hold a cluster on its build, switch nodeImages off. Deleting a broken build keeps the clusters that have not moved to it yet from moving. A build that clusters already run is deleted only with --roll-clusters, which replaces their nodes at once, outside their windows (templates.md).
Add-on changes
A new Kubehenge release changes the charts it installs and the values it gives them. A cluster with an upgrade window gets those changes inside the window and not before. That covers every add-on, from the CNI and the CSI plugin to Traefik and Kyverno.
A cluster has a window once its upgrades variable has automatic upgrades or node image refreshes on. A cluster without one gets the changes at once.
What applies at once
Three things apply at once, window or not:
- a new cluster
- an add-on you switch on
- a change you make to the cluster's own settings. It takes the waiting changes with it.
While changes wait, the cluster has the condition AddonChangesPending. The annotation kubehenge.dev/addon-changes lists each add-on with its chart, the version it runs and the version it moves to. The cluster's page and the Upgrade dialog show the same list.
A security fix to an add-on waits for the window like a Kubernetes patch does. Apply now on the cluster's page, and kubehenge cluster apply-addon-changes, apply the waiting changes at once. So does the annotation:
kubehenge cluster apply-addon-changes <name>
kubectl -n <namespace> annotate cluster <name> kubehenge.dev/apply-addon-changes="$(date -u +%FT%TZ)"The controller takes the annotation off once it has applied the changes.
What holds an upgrade back
- Removed APIs and fail-closed webhooks. An automatic upgrade makes the same checks and waits when they find something. The Cluster gets the condition
AutoUpgradeSkipped, and accepting the findings goes past it (troubleshooting.md). - Rancher. The cluster that runs Rancher stays within the Kubernetes versions Rancher's release runs on.
- An upgrade beyond them, by hand or automatic, waits (the cluster's conditions say why) until a Kubehenge release brings a Rancher that runs there.
- A missing kubeadm template. New kubeadm nodes cannot be created without the template of their version (troubleshooting.md).
- No spare addresses. Each rollout creates a node before removing one (troubleshooting.md).
- A node that will not let go. The machine being removed waits for its node until the deletion timeouts run out.
Machine deletion timeouts
A rollout, a node image refresh and the replacement of an unhealthy node each remove a machine. The machine first waits for its node, and three timeouts bound that wait:
- Drain (60 minutes by default) is how long the node's pods get to leave. After that the machine is removed with the pods a PodDisruptionBudget still protects, and with pods that ignore their stop signal.
- Volume detach (10 minutes) is how long the node's volumes get to detach, though Proxmox VE refuses while a backup or snapshot holds the VM. Once the time runs out the machine is deleted anyway.
- Node removal (1 minute) is how long the controller retries deleting the node's Node object.
Setting the timeouts
A timeout of 0 keeps waiting for ever, for single-replica workloads that must not go down. The rollout then stays on that machine until the pod or the volume lets go.
Set them per cluster and per pool with Timeouts… under Machines, with kubehenge cluster timeouts, or as deletion in the Cluster (clusters.md). Talos nodes upgraded in place use the drain timeout too, before their reboot. At the timeout the node reboots with the pods left, as a removed machine is deleted (clusters.md).
Proxmox VE
Upgrading Proxmox VE
A Proxmox VE cluster that runs two major versions at once is only a stopover.
- Finish the upgrade before installing. The installer checks the node it runs on, and nothing checks the others.
- Upgrade the nodes one at a time.
- While the major versions differ, new VMs go to the oldest version's nodes that have room. Newer nodes get them only when none has.
- The Health page lists the nodes of each version. An event warns when a cluster has to use a newer node.
- Move VMs from old to new only. A VM started on a newer node gets a machine version an older node cannot run.
- HA rules wait. Proxmox VE refuses them until every node runs 9. Kubehenge writes none meanwhile and sets the condition
HARulesPendingon the cluster, which the interface andkubectl describe clustershow.
Patching Proxmox VE nodes
Patch the nodes one at a time. A control plane needs a minute or two after its node is back before its etcd member has rejoined. Two members down at once stop a cluster.
- Run
kubehenge appliance ready-for-reboot --node <node>. - Reboot the node.
- Run
kubehenge appliance ready-for-rebootwithout--nodeuntil it exits 0. - Do the next node.
Reading the answer
Without --node, the command exits 0 only when every etcd member of the management cluster and of every cluster is healthy. With --node, it exits 0 when stopping that node's guests leaves every etcd a majority of healthy members. Members already down count as gone. A cluster that is degraded but has no member on the node does not hold it back. Otherwise the command prints the first blocker in one line, with the cluster, the member and the node.
Administration, Health shows the answer for each node under Ready for reboot, and names a degraded cluster that holds no node back. etcd there counts the management cluster's healthy members. A record the controller has not renewed for three minutes blocks every node.
Start order
The management VMs start first after a node boots. They carry startup: order=1,up=90, so the next guest waits 90 seconds for their etcd members.
The interface's certificate
The interface warns administrators 30 days before its certificate runs out. Renew it in the node's shell with the installer of the appliance's release or a newer one:
sh install.sh --certificateThe same command makes a new certificate after the appliance's address changed. --name kubehenge.example.org gives the appliance a DNS name. --cert <files> installs a certificate of your own, as the installer's own question does.
It restarts the interface and the shared Headlamp, then prints the new fingerprint. It does not restart while the management cluster is applied or removed or a VM template is built. Run it again afterwards. It also removes a certificate given through the interface (below), so the installer's is served again.
--upgrade renews a certificate the installer made once it has less than 60 days left. It only warns about a certificate of your own.
From the interface
Administrators change the certificate with no shell and no restart, under Administration, Appliance, Change certificate. Open sessions and Headlamp keep working through a change.
- Upload files takes the files
--certtakes, with the same checks. The certificate must be valid for the public address. - ACME orders one, as below.
- Proxmox VE CA gives the node command above, since that CA's key stays on the node.
- Appliance CA signs one by the appliance's own CA.
- Self-signed makes a certificate for the names and addresses of the one now served and for the public address, valid for 824 days.
- Installer certificate serves the installer's again.
From the command line
kubehenge appliance certificate does the same in the appliance. Sign in first with kubehenge login at the address the installer printed, as for every kubehenge appliance command (clusters.md):
pct exec <ctid> -- kubehenge login https://kubehenge.example.org
pct exec <ctid> -- kubehenge appliance certificate
pct exec <ctid> -- kubehenge appliance certificate replace fullchain.pem host.key
pct exec <ctid> -- kubehenge appliance certificate replace host.pfx --passphrase-file /root/passphrase
pct exec <ctid> -- kubehenge appliance certificate self-sign
pct exec <ctid> -- kubehenge appliance certificate appliance-ca
pct exec <ctid> -- kubehenge appliance certificate resetThe public address
The Change address button on the page, or address, changes the DNS name or IP address people open the interface at, with no restart:
pct exec <ctid> -- kubehenge appliance certificate address kubehenge.example.org- A self-signed certificate or one of the appliance's CA is made again for it, and ACME orders one.
- Any other certificate stays, and the page warns until one valid for the new name replaces it.
- Links in notifications and sign-in go to the new address at once. Headlamp takes it at its next start, after 15 minutes unused.
- Update the redirect URLs your identity provider has registered, as below.
- The Proxmox VE interface entry keeps the old address. Move it with
sh /usr/local/sbin/kubehenge-pve-entry --url https://kubehenge.example.orgon each node that has it.
The appliance's own CA
appliance-ca serves a certificate signed by a CA the appliance makes for itself. Trust that CA once, and browsers accept the certificate without a warning:
pct exec <ctid> -- kubehenge appliance certificate ca > kubehenge-ca.pemThe page's Download CA button gives the same file.
- The CA may sign only for the names and addresses of the certificate served when it was made. Trusting it trusts no other site.
- It is valid for 10 years, and the certificate it signs for 824 days.
- The interface signs the certificate again when it starts with under a third of its lifetime left.
- New names outside the CA's make a new CA, which browsers must trust again.
resetandinstall.sh --certificatedelete the CA.
Trusting a CA
A device trusts a CA once the CA's file is in its trust store. The file is kubehenge-appliance-ca.crt from the page for the appliance's CA, or /etc/pve/pve-root-ca.pem from a Proxmox VE node for the Proxmox VE CA.
- Windows:
certutil -addstore Root kubehenge-appliance-ca.crtin an administrator's shell. - macOS:
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain kubehenge-appliance-ca.crt. - Debian: copy it to
/usr/local/share/ca-certificates/with the.crtending, then runsudo update-ca-certificates. - Fedora: copy it to
/etc/pki/ca-trust/source/anchors/, then runsudo update-ca-trust. - Firefox on Linux keeps its own store: Settings, Privacy & Security, View Certificates, Authorities, Import.
- Many devices: a Group Policy or a device management profile adds it to each.
ACME
The installer's ACME choice, the certificate page and kubehenge appliance certificate acme order the certificate from an ACME server and renew it. The server is Let's Encrypt by default, or an organisation's own:
pct exec <ctid> -- kubehenge appliance certificate acme --proof tls-alpn-01
pct exec <ctid> -- kubehenge appliance certificate acme --directory https://ca.example.org/acme/directory \
--directory-ca-file ca.pem --eab-key-id kid --eab-hmac-key-file hmac.txt
pct exec <ctid> -- kubehenge appliance certificate acme --proof dns-01 --dns-provider rfc2136 \
--dns-credentials-file dns.env --resolver 192.0.2.53:53
pct exec <ctid> -- kubehenge appliance certificate acme order
pct exec <ctid> -- kubehenge appliance certificate acme providers- The certificate is for the public address, which must be a DNS name.
- The proof is
tls-alpn-01on port 443,http-01on port 80 ordns-01through a DNS provider. The ACME server must reach the appliance on that port, anddns-01needs none. dns-01takes any DNS provider inproviders. Its credentials file holds aNAME=valueline per variable named in lego's provider documentation.- The HMAC key and the DNS credentials come from files, never from arguments.
- The page shows which secrets are saved but never their values. A field left empty keeps the saved one.
- Saving starts the first order. The page and
kubehenge appliance certificateshow its state. replace,self-sign,appliance-ca,resetandinstall.sh --certificateremove the setting and its secrets.
Renewal and failures
Renewal follows the time the ACME server gives, or starts when a third of the lifetime is left.
A failed order is retried after a minute, then after twice as long each time, up to an hour. After a day of failures it stops, and administrators get a notification. Save the setting again or run order once the cause is fixed.
Where it is kept
A certificate given this way is kept in /var/lib/kubehenge, which backups of the container hold, so a restore serves it again. --upgrade leaves it, and the upgrade's health check expects it. While it is served, --upgrade warns of its expiry 60 days ahead.
What kubehenge login trusts is in clusters.md. A new certificate that neither --ca nor the system's trust store vouches for stops kubehenge commands outside the appliance. The error names the new certificate's fingerprint. Run kubehenge login again with its CA.
Certificate files
--cert takes comma-separated files in any mix of PEM, DER, PKCS#7 and PKCS#12 (a .pfx or .p12). The certificate, its chain and its key may share a file or sit in several. --key adds a file to the list.
Encrypted files need --cert-passphrase-file <file>, whose first line is the passphrase. Without a terminal, the installer stops before creating anything if the option is missing. Saved answers keep the file paths, never the passphrase.
What the installer checks
- The certificate must be valid for the name, or for the fixed address where there is no name, and have more than a day left. With less than 30 days left it is taken with a caution giving the last day.
- A chain that lacks its issuer is taken with a caution naming the issuer to add. Issuers in this node's trust store count as known.
- Certificates in the files that the chain does not use are left out, and the installer says which.
- Without
--certor--acme, the installer asks whether to make a certificate, read files or order one by ACME. It preselects files when another CA signed the Proxmox VE API's certificate, since files from that CA avoid the browsers' warning.
DNS check
With a name, the installer looks it up on this node. It says whether the name points at the appliance, at another address or nowhere, or could not be checked. None of these stops the install. A name that does not point at the appliance gets the appliance's address beside it on the last screen.
Names and addresses
A renewal keeps a name given before unless --name gives another, or --no-name drops it for the appliance's address again. It keeps a name from a certificate the Proxmox VE CA signed. It keeps any other name only where this node's DNS resolves it to the appliance's address. Otherwise it drops the name and says so, unless --name names it. The address is the one the container's configuration gives it, or with DHCP the one the container reports.
After a new name or address, it points this node's Proxmox VE interface entry (install.md) at it and prints the command for the other nodes. Update the redirect URLs registered for identity providers (https://<name>/api/openid/callback) and for the shared Headlamp (https://<name>:8443/oidc-callback).