The Simplest Way to Make Longhorn and Windows Server 2019 Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Pairing longhorn and windows server 2019 lets mixed clusters share persistent block storage across nodes. Linux nodes run the storage engine while Windows workloads mount volumes over the network. Many teams run older dot-net apps on Windows nodes beside modern Linux services. Both sides need reliable storage with automated backups and clear permission rules. Getting the two systems to talk requires a clean network path and strict role scoping. How longhorn and windows server 2019 share stora

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Pairing longhorn and windows server 2019 lets mixed clusters share persistent block storage across nodes. Linux nodes run the storage engine while Windows workloads mount volumes over the network.

Many teams run older dot-net apps on Windows nodes beside modern Linux services. Both sides need reliable storage with automated backups and clear permission rules. Getting the two systems to talk requires a clean network path and strict role scoping.

How longhorn and windows server 2019 share storage and permissions

Longhorn runs its core storage controllers on Linux nodes inside your Kubernetes cluster. It creates replicated block volumes from the local disks attached to those Linux hosts. Windows Server 2019 cannot run the native Linux storage engine on its own kernel.

Instead, Windows nodes mount those storage volumes over the internal cluster network. Or they use a storage bridge on the Linux side to share files. The cluster control plane checks node identities before attaching any volume to a Windows pod.

Data flows from the Windows app through the container network interface to the Linux storage replicas. Kubernetes service accounts and role bindings control which pods can claim specific storage volumes. Admins also log in to both node types to check disk health and fix mount errors.

Common failure modes and how to scope roles and networks

Mixed clusters often fail when teams use shared admin accounts to fix broken volume mounts. Engineers log in to Windows nodes with broad domain keys that never expire. At the same time, they use cluster-admin tokens to change storage settings on the Linux side.

Broad tokens and shared service accounts make it hard to track who changed a volume. Unlogged actions on a host can break storage paths or expose sensitive data inside snapshots. If a pod has wide permissions, an attacker can mount volumes belonging to other teams.

Kubernetes API Server Access + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To prevent this, scope every role to the smallest set of volumes and nodes needed. Separate your storage traffic onto a dedicated internal network segment between Linux and Windows hosts. Block direct public routes to both the storage UI and the Windows management ports.

Assign unique Kubernetes roles to each app team so pods only claim their own volumes. When an admin needs to check a disk or fix a stuck mount, require individual login credentials. Keep detailed audit logs of every command run on both Linux storage nodes and Windows hosts.

Keeping backups and sensitive volume data safe

Storage volumes often hold databases or shared files with emails, phone numbers, and card numbers. When Longhorn sends volume snapshots to remote backup storage, those files carry the same sensitive records. You must lock down the keys used by the backup engine to write those snapshots.

Do not store static cloud storage keys in plain text across your cluster namespaces. Rotate backup credentials often and limit the backup role to write and read only its own bucket. When teams query databases hosted on these volumes, use data masking to rewrite matched fields in results.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

Can Longhorn run its storage engine directly on Windows Server 2019 nodes?

No, the core storage engine needs Linux kernel tools to manage block devices and replicas. You must run the storage nodes on Linux and attach volumes to Windows workloads over the network.

How should we restrict who can manage Longhorn volumes in a mixed cluster?

Use Kubernetes role-based rules to limit volume claims by namespace and team role. Never expose the storage dashboard to the network without strong single sign-on checks.

What causes volume mounts to drop on Windows Server 2019 nodes?

Network drops between the Windows overlay network and the Linux storage network are the main cause. Check your firewall rules and make sure both node types have low-latency internal routes.

Short role checks help teams work fast. Simple rules make each review clear. Good logs keep every team safe. Scoped keys stop bad changes early.

The query runs. The emails stay hidden.