Skip to content
ImagineWorld

Operating Harvester in Production

node_idnode-book_mastering-suse-harvester_chapter-12-operating-harvester-in-production
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num12
chapter_titleOperating Harvester in Production
next_chapterNone
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Chapter 12: Operating Harvester In Production

Section titled “Chapter 12: Operating Harvester In Production”

Running Harvester in production means treating it as a core infrastructure platform, not as an experiment. At that point, your concerns change. Initial setup and proof of concept give way to upgrades, patching, capacity planning, security posture, compliance, monitoring and the ability to respond calmly when something fails at the worst possible time.

Harvester is not a single monolith. It is a stack composed of SLE Micro as the host OS, RKE2 as the Kubernetes distribution, Longhorn for storage, KubeVirt for virtualization and Rancher as the multi cluster management plane. Each of those layers has its own release cadence, configuration options and failure modes. SUSE documents Harvester’s release cadence and support matrix, typically aiming for several minor releases a year with defined upgrade paths between versions.

Day 2 operations across that stack are where a lot of organizations succeed or fail. If you get upgrades wrong, clusters stay on old versions or break during maintenance. If you treat security as an afterthought, auditors will do the prioritization for you. If you lack playbooks for common incidents, outages will drag on longer than they need to.

The goal here is practical operation. You will see how to think about upgrades, capacity, patching and air gapped setups. You will see how to apply hardening guidance from Rancher and RKE2 to Harvester, how to structure incident response and troubleshooting, and how different reference architectures look in real use, including edge and regulated environments.

12.1: Day 2 Operations Upgrades, Patching And Capacity Adjustments

Section titled “12.1: Day 2 Operations Upgrades, Patching And Capacity Adjustments”

Upgrades and patching are unavoidable. Harvester, RKE2, Longhorn and SLE Micro all receive security fixes and feature releases. The challenge is to roll those changes through your environment without loss of data, prolonged outages or unexpected side effects.

On the Harvester side, the primary way to upgrade is through the built in upgrade workflow in the Harvester UI. When a newer supported version is available, an Upgrade button appears on the Dashboard. Clicking it lets you select a target version, then starts a multi phase upgrade that coordinates changes to the management components and nodes. Official documentation explains that the button only appears when the version is eligible for upgrade based on the supported paths and that you must respect the support matrix, especially when Rancher is managing the cluster.

For example, to move to Harvester v1.5, the support matrix states that Rancher must first be upgraded to a supported v2.11 patch. Only then should you upgrade Harvester itself. This order matters because Rancher extensions and Harvester integration depend on specific APIs and version ranges. Ignoring these constraints can leave you with a Rancher instance that no longer manages Harvester correctly.

The upgrade process itself has several phases. The troubleshooting guide for Harvester upgrades breaks these down and describes how to diagnose each phase. It emphasizes checking version specific upgrade notes, using the UI to track progress and examining logs from the upgrade jobs when something stalls.

For production clusters, you should layer additional habits on top of the basic documented process. Before each upgrade, freeze any non essential configuration changes. Take VM backups to an external backup target using Longhorn and Harvester backup features. Confirm that your monitoring and alerting are functioning so that you will see cluster symptoms during and after the upgrade. And whenever possible, rehearse the upgrade on a non production cluster that matches production as closely as possible in topology and add ons.

For air gapped environments, Harvester provides specific guidance. The upgrade documentation has a dedicated section for preparing air gapped upgrades, including pre downloading ISO images and using local HTTP servers or file shares so that nodes do not have to reach public registries. If you operate in such environments, maintaining an internal image registry and mirroring the relevant Helm charts is not optional; it is the only way upgrades and app lifecycle will work reliably.

Patching below Harvester is also important. SLE Micro receives kernel and userland updates and SUSE Manager or transactional update tools can apply these in a controlled way. SUSE documentation on online upgrades and service pack updates describes how transactional updates and rollback capabilities work. In Harvester, you typically let the Harvester upgrade pipeline drive OS level changes rather than updating SLE Micro independently, but understanding how SLE patching behaves is useful when debugging host side issues.

Capacity adjustments are another Day 2 concern. Workloads grow, new tenants arrive and usage patterns change. Harvester makes it straightforward to add nodes, but that does not mean you should add them blindly. Documentation and experience both point to a few key checks before scaling up. You need to verify that the existing nodes are healthy, that etcd quorum is stable, that storage replicas are in a good state and that network configuration is correctly applied. Community troubleshooting notes stress that joining nodes to an unhealthy cluster can amplify problems, with one reported case where nodes added later caused the entire cluster to become unresponsive when they went offline.

When you add capacity, you should also evaluate how Longhorn will use it. Each new node adds potential storage and replication targets. You can tune disk tags and scheduling rules to keep certain volumes on particular tiers, such as NVMe heavy nodes for performance sensitive volumes and HDD heavy nodes for archival data. If you do not apply such structure, Longhorn will spread replicas based on available space and basic scheduling rules, which might not align with your performance expectations.

Every capacity change is also an opportunity to revisit resource reservations. Overcommitting CPU or RAM at the cluster level may look acceptable in dashboards until a node fails and your workloads compress onto fewer hosts. Using Kubernetes requests and limits sensibly and reserving a portion of each node’s capacity for system workloads will make the cluster more predictable under stress.

You can automate some of this capacity analysis. For example, you can run periodic checks that compare allocatable resources with current VM requests to decide whether another node should be added.

#!/usr/bin/env sh
# Simple capacity summary for Harvester nodes and VM resource usage.
# Requires kubectl configured against the Harvester management cluster
# and jq installed.
set -e
echo "Node allocatable (CPU cores and GiB memory):"
kubectl get nodes -o json \
| jq -r '.items[] |
.metadata.name as $name |
.status.allocatable.cpu as $cpu |
(.status.allocatable.memory | sub("Ki$"; "") | tonumber / 1048576) as $memGi |
"\($name)\tCPU: \($cpu)\tMem: \($memGi|floor)Gi"'
echo
echo "Requested VM resources (CPU cores and GiB memory):"
kubectl get vmis -A -o json \
| jq -r '
.items[]
| .metadata.namespace as $ns
| .metadata.name as $name
| .spec.domain.cpu.cores as $cores
| (.spec.domain.resources.requests.memory // "0Gi") as $mem
| "\($ns)/\($name)\tCPU: \($cores)\tMemReq: \($mem)"'

This script gives you a quick view of node capacity and VM requests. Combined with Longhorn volume usage and network utilization metrics, it helps you decide if your current hardware has headroom or if you need to plan a scale out.

When upgrades and capacity changes become routine instead of stressful events, you know your Day 2 operations are in good shape. To reach that state, you standardize procedures, automate checks where possible and keep an eye on Harvester’s release notes and support matrix so that surprises stay small.

12.2: Security, Hardening And Compliance For Harvester And Rancher

Section titled “12.2: Security, Hardening And Compliance For Harvester And Rancher”

Security on Harvester is security on several layers at once. There is the host OS layer with SLE Micro, the Kubernetes layer with RKE2, the Harvester management layer, the storage layer with Longhorn, and the Rancher management plane over the top. Neglecting any one of these gives attackers or misconfigured workloads room to cause damage.

RKE2, which underpins Harvester, ships with a strong security posture by default, including defaults that meet many CIS Kubernetes benchmark requirements when configured appropriately. The RKE2 documentation provides a CIS hardening guide that explains how to configure components such as API server flags, kubelet settings and file permissions to align with the CIS controls. Rancher documentation complements this with self assessment and hardening guides for Rancher managed clusters, covering topics like TLS configuration, RBAC, Pod Security Standards and external authentication.

Harvester inherits a lot from this ecosystem. For example, Rancher and Harvester both rely heavily on RBAC instead of static admin credential patterns. Rancher encourages integration with enterprise identity providers such as LDAP, SAML or OIDC so that Harvester access sits behind the same SSO and MFA checks as other internal systems.

At the OS level, a GitHub issue in the Harvester project notes that Harvester OS is not automatically fully compliant with CIS Linux benchmarks and that work is underway to integrate OpenSCAP scanning and align with CIS SLES benchmarks. That means you should not assume that Harvester hosts are magically compliant. If your organization relies on CIS or similar baselines, you still need to run scans, tune configurations and document exceptions.

At the same time, specialized distributions such as Harvester Government show that a hardened variant is feasible. Rancher Government Solutions describes Harvester Government as a fully hardened HCI platform that aligns with strict government security standards out of the box, reflecting CISA’s Secure by Design guidance. Even if you do not use that variant, its existence clarifies what kind of controls are applicable, such as FIPS compliant crypto, STIG aligned settings and rigorous patch pipelines.

In a typical enterprise, hardening Harvester and Rancher involves several concrete measures.

First, you ensure that API endpoints are exposed only on appropriate networks. The Harvester VIP, RKE2 API server and Rancher UI should sit behind secure ingress points, often through reverse proxies or firewalls that enforce TLS and client restrictions. Rancher documentation on monitoring and alerting assumes that these endpoints are reachable from Prometheus in a controlled way, not that they are open to arbitrary networks.

Second, you put Rancher itself into a hardened mode. Recent Rancher releases provide options to install clusters in CIS hardened mode, which applies stricter defaults and controls. The hardening guides for RKE and RKE2, and the Rancher hardening guides themselves, give prescriptive lists of kubelet flags, admission control settings, file permissions and audit logging settings. While Harvester abstracts some of this away, the underlying RKE2 cluster that Harvester runs on can still be assessed and tuned.

Third, you enforce workload level security. For clusters that host guest Kubernetes clusters on Harvester, you can enable Pod Security Admission with restricted policies for namespaces, use NetworkPolicies to control pod to pod traffic, and use tools like OPA Gatekeeper or Kyverno to enforce guardrails for new deployments. Those patterns are described thoroughly in Kubernetes and Rancher security guidance.

Even for pure VM workloads, there are security concerns. VM templates should be hardened: unnecessary services disabled, SSH locked down with keys only, logs forwarded to central collectors, and credential handling aligned with your secrets management practices. Harvester does not enforce these preferences for you. It gives you mechanisms such as cloud init and VM templates, but you have to use them consistently.

You can capture some of this as code. For example, you can enforce a default NetworkPolicy that denies all traffic by default in a namespace and only allows explicitly defined flows.

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-deny-all
namespace: app-prod
spec:
podSelector: {}
policyTypes:
- Ingress
- Egress

With this in place, only pods with additional NetworkPolicies that allow ingress or egress will have connectivity. This pattern is critical for guest clusters running on Harvester, especially in multi tenant environments.

You can also use admission control policies to require that certain labels are present on Harvester custom resources or on pods. For example, you may require that every Kubernetes namespace or VM template carries an owner label and a data classification label. Using OPA Gatekeeper, you can declare such a policy as a ConstraintTemplate and Constraint pair.

apiVersion: constraints.gatekeeper.sh/v1beta1
kind: K8sRequiredLabels
metadata:
name: require-owner-and-classification
spec:
match:
kinds:
- apiGroups: [""]
kinds: ["Namespace"]
parameters:
labels:
- key: "owner"
- key: "data-classification"

Enforcing such labels might seem bureaucratic at first, but they make incident response and compliance tracking much easier later, because you can quickly identify who is responsible for a namespace or a VM and what kind of data it carries.

From a compliance standpoint, audits will ask for evidence. That includes documented patching schedules for Harvester, Rancher and the guest OSs inside VMs, central syslog or structured logging for host and cluster events, regular vulnerability scans, and processes for managing privileged access. Harvester does not replace those processes; it has to fit into them. But Rancher and Harvester make it simpler to audit configuration, because so much is expressed as Kubernetes resources that can be queried, exported and compared.

If your environment has very strict requirements, studying emerging offerings like Harvester Government is worthwhile even if you do not adopt them directly. They show which parts of the stack regulators care about the most and highlight patterns for achieving security objectives such as minimizing attack surface, ensuring secure boot, and standardizing supply chain practices across air gapped installations.

12.3: Incident Response And Troubleshooting Playbooks For Common Failures

Section titled “12.3: Incident Response And Troubleshooting Playbooks For Common Failures”

Even with good design and hardening, things break. Disks fail, nodes lose power, upgrades go wrong, Longhorn hits corner cases, certificate chains expire and network changes disrupt traffic. A production platform is judged less by whether it avoids every failure and more by how quickly and calmly it recovers.

Harvester’s troubleshooting documentation is a good starting point. It offers tips for upgrade failures, including how to read the phases of the upgrade process and where to find logs for the upgrade jobs. Longhorn’s troubleshooting section provides advice for storage problems, including replica scheduling issues, attach failures and unexpected volume expansion behavior. Community posts and GitHub issues provide additional insight into real failures, such as clusters becoming unresponsive when particular nodes go down or single node installations flooding logs with replica scheduling errors.

A practical incident response approach is to prepare playbooks for the failures you are most likely to see. Common examples in Harvester environments include:

Node failures where one or more hosts disappear from the cluster, Control plane issues where the Harvester UI and Kubernetes API become unreachable, Longhorn storage degradation where replicas go missing or volumes do not attach, Networking issues that manifest as VMs losing connectivity or Kubernetes pods flapping, Failed upgrades that leave the cluster in a partially upgraded state.

Each of these can be handled with a sequence of checks and actions. For example, a node failure playbook might start with verifying whether the host is physically reachable, then checking RKE2 and Harvester systemd services, then inspecting kubectl output to understand the Kubernetes view of that node, then triggering Longhorn replica rebuilds if necessary.

You can capture some of that as simple diagnostic scripts that engineers run at the beginning of an incident.

#!/usr/bin/env sh
# Basic Harvester incident triage script.
# Requires kubectl configured for the Harvester cluster.
set -e
echo "=== Cluster nodes ==="
kubectl get nodes -o wide
echo
echo "=== Harvester system pods ==="
kubectl get pods -n harvester-system
echo
echo "=== Longhorn components ==="
kubectl get pods -n longhorn-system
echo
echo "=== Recent Longhorn manager warnings ==="
kubectl logs -n longhorn-system \
-l app=longhorn-manager \
--tail=200 --since=30m \
| grep -i -E "error|fail|degraded" || true

This script does not fix anything on its own, but it standardizes the first few steps and ensures everyone looks at the same basic facts. From there, you branch into more specific checks.

For node level issues, you should check RKE2 services and node level logs on SLE Micro.

Terminal window
# On a Harvester node with suspected issues
sudo systemctl status rke2-server rke2-agent harvester
sudo journalctl -u rke2-server -u rke2-agent -u harvester -S -30min

For Longhorn, troubleshooting guides advise inspecting the logs of longhorn-manager, longhorn-engine and the CSI components and using the Longhorn UI to see replica status. Issues such as unexpected expansion or wrong process communication are documented, along with upcoming fixes in specific Longhorn versions. Understanding whether your cluster runs a version affected by a known bug can save hours of guesswork.

Upgrade failures are another area where a playbook helps. The Harvester upgrade troubleshooting page recommends checking version specific notes, inspecting upgrade job logs and understanding each phase of the process. A sensible playbook might define that during an upgrade, one engineer monitors the Harvester UI upgrade progress, another tails logs from upgrade jobs and RKE2 components, and a third keeps an eye on Longhorn and etcd health metrics. If the upgrade stalls beyond a defined timeout, you pause, validate etcd snapshots and, if necessary, contact vendor support before proceeding.

Rancher specific issues also appear in Harvester environments. The Harvester troubleshooting section for Rancher mentions that strict TLS verification requires Rancher to have access to the CA that signed the certificates visible to agents and that misconfigurations can prevent agents from connecting. In practice, this can manifest as clusters stuck in an unhealthy state or nodes that fail to register. Your playbook should include checks on Rancher management cluster health, Rancher agent logs and certificate paths when Harvester clusters are managed by Rancher.

Incident response is not only about technical steps. It is also about communication and data capture. For serious incidents, a lightweight timeline of events is useful. You can even automate part of that by periodically dumping key data into a namespace that acts as an incident record.

apiVersion: batch/v1
kind: CronJob
metadata:
name: harvester-state-snapshot
namespace: platform-tools
spec:
schedule: "*/15 * * * *"
jobTemplate:
spec:
template:
spec:
serviceAccountName: harvester-readonly
containers:
- name: snapshot
image: bitnami/kubectl:1.30
command:
- /bin/sh
- -c
- >
kubectl get nodes,pods -A -o wide >
/state-snapshots/state-$(date +%s).log;
restartPolicy: OnFailure
volumes:
- name: state-snapshots
emptyDir: {}

In a real cluster you would mount a persistent volume instead of emptyDir, but the idea is simple: have a periodic snapshot of basic state that you can consult when reconstructing incident timelines.

Some failure modes are chronic rather than acute. For instance, a Longhorn issue where volumes cannot schedule replicas due to disk constraints can lead to log floods and degraded redundancy. An example GitHub issue shows a single node Harvester setup logging millions of lines about inability to schedule replicas because no available disks matched the scheduling rules. A troubleshooting playbook for storage should include checks for disk pressure, replica counts and available disk tags.

Ultimately, good incident response in Harvester environments is about familiarity and practice. Running game days where you intentionally kill nodes, break a network link, simulate a Longhorn disk failure or trigger synthetic API failures will reveal weaknesses in your playbooks and monitoring. Those exercises are far less expensive than discovering those weaknesses during a real outage.

12.4: Reference Architectures, Edge Scenarios And Realistic Case Studies

Section titled “12.4: Reference Architectures, Edge Scenarios And Realistic Case Studies”

By the time Harvester reaches production, you typically have more than one cluster and more than one use case. Reference architectures and case studies help you compare your environment to known patterns and give you ideas for how to adjust.

One common pattern is a centralized data center deployment where Harvester clusters run as the HCI layer, Rancher runs as the multi cluster management plane, and RKE2 and K3s guest clusters on Harvester provide Kubernetes for applications. SUSE’s Harvester overview and buyer’s guide describe this alignment explicitly: Harvester managed by Rancher, hosting RKE2 or K3s clusters, delivering a unified platform for VMs and containers.

In such setups, a typical reference architecture might look like this. A three to nine node Harvester cluster in each data center, each node running SLE Micro and configured with multiple NICs. One or two NICs handle management and VM traffic, one NIC (or a bond) handles storage traffic for Longhorn, and possibly another NIC handles out of band or migration networks. Longhorn spans all nodes, with disks tagged by tier. Rancher runs on a separate management cluster, possibly in the same data center or in a central region, and imports each Harvester cluster as a virtualization management target. Guest RKE2 clusters run on Harvester, using Harvester network and CSI drivers for services and persistent volumes. Monitoring via Prometheus and Grafana spans both Rancher and Harvester metrics.

Another reference pattern focuses on edge computing. Edge deployments often need small footprint clusters, tolerate limited physical space and power, and operate in locations with constrained or intermittent connectivity. SUSE and partners describe edge reference architectures built on Rancher, RKE2, K3s and service mesh components such as Linkerd. Harvester fits into this picture as the HCI layer for edge sites that still need local VMs alongside Kubernetes clusters.

A practical edge architecture with Harvester might involve a three node Harvester cluster in a small form factor server stack at each site. Rancher, running centrally, manages these Harvester clusters and the RKE2 or K3s clusters on top of them. Longhorn provides local storage, with replication across the three nodes. Because network links back to the core are limited, GitOps tools such as Fleet sync configuration when connectivity is present and tolerate periods of isolation. Monitoring can be federated, with local metric collection at the edge and selective forwarding of aggregated metrics back to central observability stacks.

Air gapped deployments are another realistic case, especially in government, defense and industrial sectors. Here, Harvester’s ability to run fully without internet connectivity, combined with RKE2’s documented air gap installation process and Rancher’s support for air gapped clusters, becomes essential. The architecture usually includes an internal registry mirror hosting Harvester, Longhorn, RKE2 and application images, an internal Helm chart mirror for Rancher and other apps, and well defined processes for importing patches and images via secure media. The Harvester Government product and related literature show how such environments can still achieve strong security and observability despite being disconnected from public networks.

Another useful pattern is mixed infrastructure, where Harvester coexists with public cloud and possibly with remaining VMware clusters. The Rancher buyer’s guide talks about Rancher as a unified platform that can manage Kubernetes clusters across on premises and cloud, with Harvester providing HCI capabilities and RKE2 or K3s as the Kubernetes layer. In such a setup, you may run Harvester clusters for workloads that need local data or specific hardware, while also managing EKS, AKS or GKE clusters for cloud native services. Operators see all clusters from one Rancher UI and can apply similar policies and GitOps pipelines across them.

Real world case studies often reflect combinations of these patterns. A central office might have a large Harvester cluster serving as a VMware alternative for a mix of Linux and Windows VMs and as a platform for RKE2 clusters. Branch offices might have smaller Harvester clusters running a limited set of VMs and a small K3s cluster for local applications, with Rancher providing central policy and monitoring. Some departments might still rely on legacy VMware appliances, which stay on a shrinking vSphere estate while new workloads get provisioned on Harvester.

What these scenarios share is less about exact hardware choices and more about operational characteristics. Harvester is treated as part of a broader platform where upgrades, security, observability and automation are consistent across sites. Rancher is used as the coordination point. Longhorn is not treated as a black box but as a system you monitor and tune. RKE2 and K3s clusters are not treated as pets but as declarative resources that can be recreated from Git.

For teams used to VMware centric operations, this can feel like a significant cultural shift. Tools change, APIs replace some of the UI driven workflows, and infrastructure starts to look more like code. The payoff is flexibility. Harvester can run at the core and at the edge, in connected and air gapped sites, for VM heavy and container heavy workloads, all managed under a common operational model.

The most successful production environments do not treat reference architectures as rigid patterns to copy, but as sources of proven components to adapt. They start from clear requirements, pick a combination of Harvester, Rancher, RKE2 and related tooling that fits those requirements, and then invest in the Day 2 concerns covered here: upgrades, security, incident response and realistic capacity planning. At that point, Harvester is no longer only an alternative to VMware. It becomes a central part of an infrastructure platform that is ready for the workloads and constraints you actually have.