The Simplest Way to Make Kustomize and Windows Server Core Work Like They Should
You can pair kustomize and windows server core to run Windows apps in containers. Kustomize builds manifest files while Windows Server Core runs the app code on nodes. Teams use this pair to keep one base set of files for all clusters. Each stage gets its own small patch for node rules, memory limits, and image tags. This setup stops manual edits and keeps each cluster deployment clean and safe. How kustomize and windows server core share data and roles Kustomize reads your base YAML files a
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.
You can pair kustomize and windows server core to run Windows apps in containers. Kustomize builds manifest files while Windows Server Core runs the app code on nodes.
Teams use this pair to keep one base set of files for all clusters. Each stage gets its own small patch for node rules, memory limits, and image tags. This setup stops manual edits and keeps each cluster deployment clean and safe.
How kustomize and windows server core share data and roles
Kustomize reads your base YAML files and adds patches before sending them to the cluster. The cluster control plane reads those files and schedules pods onto Windows worker nodes. Windows Server Core then starts the container process using the rules from your manifest.
Log in and role rules flow from the cluster down to the Windows host. You set up service accounts and Active Directory group specs inside your Kustomize patches. When the pod starts, the node checks these specs to grant local or domain rights. The app then uses those rights to read files or talk to other network services.
Data also flows into the container through mounted volumes and secret maps. Kustomize generates fresh secret maps for each stage so pods read the right keys. When you update a secret in Kustomize, the new hash forces a safe pod restart.
Common failure modes and how to scope roles
Mixed cluster scheduling is the most common failure mode for this pair. If a patch misses the OS selector, the cluster sends Windows pods to Linux nodes. The pod then fails to start because the kernel cannot run the Windows image. You fix this by putting strict node selectors in your base Kustomize files.
Shared service accounts also cause huge risks in production clusters. Teams often give one broad domain account to all Windows pods to save time. If one app gets hacked, the attacker gets broad rights across the whole domain. You should scope one small role per app and patch it per stage.
Kubernetes API Server Access + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Broad secret maps create another big risk when teams store plain keys in git. Never put raw passwords or long-lived tokens inside your base overlay files. Instead, load secrets from an external store and limit which pods can read them.
Network rules and storage mounts for Windows nodes
Network paths between pods need tight rules so apps only talk to needed targets. Not all cluster network tools enforce pod traffic rules on Windows nodes in full. Check that your network plugin drops unwanted traffic between namespaces on Windows hosts. Set up clear ingress and egress rules in your base files for each app.
Storage mounts also break when Linux file paths leak into Windows patches. Linux uses forward slashes while Windows expects drive letters and backslashes for local mounts. Keep path patches inside your OS overlay so the right format goes to each node. Also check that the container user role has write permissions on the host folder.
Unlogged host actions make it hard to track bugs or spot bad actors. Windows Server Core has no graphical screen, so teams must read event logs remotely. Set up a log agent on each node to collect system and app logs. Send those logs to a central store so your team can check every action.
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
How do we keep Linux pods off Windows Server Core nodes?
Use taints on your Windows nodes and add matching tolerations in your Kustomize overlay. This rule stops Linux pods from landing on Windows hosts during scheduling.
How should we manage domain rights for Windows containers?
Use group managed service accounts and attach the account name through a Kustomize patch. Each stage gets its own scoped account without storing static passwords in files.
Why do my Windows containers fail to pull base images?
The container host build must match the Windows Server Core image build number. Put the exact image tag in your Kustomize patch to match your node version.
Related guides
In this post