<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jozef Polcik</title>
    <description>The latest articles on DEV Community by Jozef Polcik (@jozef-polcik).</description>
    <link>https://dev.to/jozef-polcik</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3801780%2F6aded0bb-8e88-4dad-a130-3faa3189d2b9.jpeg</url>
      <title>DEV Community: Jozef Polcik</title>
      <link>https://dev.to/jozef-polcik</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jozef-polcik"/>
    <language>en</language>
    <item>
      <title>Why Opinionated Beats Flexible: The Factory Model for Kubernetes</title>
      <dc:creator>Jozef Polcik</dc:creator>
      <pubDate>Mon, 02 Mar 2026 13:42:01 +0000</pubDate>
      <link>https://dev.to/jozef-polcik/why-opinionated-beats-flexible-the-factory-model-for-kubernetes-3794</link>
      <guid>https://dev.to/jozef-polcik/why-opinionated-beats-flexible-the-factory-model-for-kubernetes-3794</guid>
      <description>&lt;p&gt;Every DevOps engineer loves options.&lt;/p&gt;

&lt;p&gt;Ingress Controller? "Let's evaluate Nginx, Traefik, HAProxy, Contour, and the AWS one."&lt;br&gt;
Service Mesh? "Istio vs Linkerd vs Cilium."&lt;br&gt;
Secrets? "Vault vs AWS Secrets Manager vs SOPS vs Sealed Secrets."&lt;br&gt;
IaC? "Terraform vs Pulumi vs CDK vs Crossplane."&lt;/p&gt;

&lt;p&gt;We call this "flexibility." But let's be honest about what it actually produces: &lt;strong&gt;drift&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;After 15 years in DevOps, I've watched the same pattern repeat across dozens of companies:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A small team (1-5 DevOps engineers) starts building an "Internal Developer Platform"&lt;/li&gt;
&lt;li&gt;They spend 12-18 months stitching together tools&lt;/li&gt;
&lt;li&gt;Every engineer picks their favorite for each layer&lt;/li&gt;
&lt;li&gt;By the time it's "done," half the choices are outdated&lt;/li&gt;
&lt;li&gt;Nobody dares touch it because nobody understands the full picture&lt;/li&gt;
&lt;li&gt;The original engineer leaves&lt;/li&gt;
&lt;li&gt;The new hire starts over&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is not platform engineering. This is &lt;strong&gt;infrastructure archaeology&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  The Factory Model
&lt;/h2&gt;

&lt;p&gt;I started thinking about this differently when I looked at how actual factories work.&lt;/p&gt;

&lt;p&gt;A car factory doesn't ask: "What kind of welding robot do you prefer?" It has &lt;strong&gt;one&lt;/strong&gt; welding robot. It's tested. It's maintained. It produces consistent output.&lt;/p&gt;

&lt;p&gt;The factory's value isn't in choice. It's in &lt;strong&gt;consistency and speed&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;So I applied this to Kubernetes infrastructure:&lt;/p&gt;
&lt;h3&gt;
  
  
  The Rules
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;1. Null-Choice Architecture&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You don't pick your ingress controller. You don't pick your GitOps tool. You don't pick your policy engine.&lt;/p&gt;

&lt;p&gt;The stack is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;ALB&lt;/strong&gt; via AWS Load Balancer Controller (not Nginx)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ArgoCD&lt;/strong&gt; for GitOps (not Flux)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Kyverno&lt;/strong&gt; for policy (not OPA/Gatekeeper)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Karpenter&lt;/strong&gt; for autoscaling (not Managed Node Groups)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;External Secrets&lt;/strong&gt; + AWS Secrets Manager (not Vault)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OpenTofu&lt;/strong&gt; for IaC (not Terraform, due to licensing)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;"But what if I want Nginx?"&lt;/p&gt;

&lt;p&gt;Then this approach isn't for you. And that's okay. The constraint is the feature.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Glass Box, Not Black Box&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This isn't a PaaS. You're not renting a platform from someone.&lt;/p&gt;

&lt;p&gt;You own the Git repo. You own the OpenTofu modules. You own the Helm charts. You own the AWS account. Everything is visible, auditable, inspectable.&lt;/p&gt;

&lt;p&gt;The difference from a PaaS:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Black Box&lt;/strong&gt; (Heroku, Vercel): "Trust us, it works." → Until it doesn't, and you can't debug it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Glass Box&lt;/strong&gt;: "Here's exactly how it works. Don't modify it, but you can see everything."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If the vendor disappears tomorrow, your infrastructure keeps running.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Layered Architecture&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The entire stack is split into 4 independent layers:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Layer 0 — Bootstrap
  S3 state bucket, DynamoDB lock, IAM trust role
  Run once. Never touch again.

Layer 1 — Network
  VPC, Route53, ACM certificates
  Persistent. Survives cluster replacement.

Layer 2 — Data
  Aurora Serverless v2, ECR, S3, EFS
  Persistent. Survives cluster replacement.

Layer 3 — Cluster
  EKS, Karpenter, ArgoCD, Kyverno, addons
  REPLACEABLE. Destroy and rebuild without data loss.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The key insight: &lt;strong&gt;Layer 3 is disposable.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Instead of painful in-place EKS upgrades, you destroy the cluster layer and rebuild it. Your databases, DNS, and certificates stay untouched. ArgoCD re-syncs all workloads automatically.&lt;/p&gt;

&lt;p&gt;Layers are connected by data sources and tags — no &lt;code&gt;terraform_remote_state&lt;/code&gt;, no hardcoded IDs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Kyverno is Law&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The factory has rules. If your deployment doesn't follow them, it gets rejected:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# No deployment without resource limits&lt;/span&gt;
&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;kyverno.io/v1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ClusterPolicy&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;require-limits&lt;/span&gt;
&lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;validationFailureAction&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Enforce&lt;/span&gt;
  &lt;span class="na"&gt;rules&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;check-limits&lt;/span&gt;
    &lt;span class="na"&gt;match&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;any&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;resources&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;kinds&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;Pod&lt;/span&gt;
    &lt;span class="na"&gt;validate&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;message&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;CPU&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;and&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;memory&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;limits&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;are&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;required."&lt;/span&gt;
      &lt;span class="na"&gt;pattern&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;containers&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;resources&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
              &lt;span class="na"&gt;limits&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
                &lt;span class="na"&gt;memory&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;?*"&lt;/span&gt;
                &lt;span class="na"&gt;cpu&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;?*"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No limits? Rejected. No liveness probe? Rejected. Image from untrusted registry? Rejected.&lt;/p&gt;

&lt;p&gt;This isn't optional. This is how the factory works. Developers learn the rules once and never think about them again.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Math
&lt;/h2&gt;

&lt;p&gt;A typical small company spends:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;Monthly Cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;2 DevOps engineers (EU avg)&lt;/td&gt;
&lt;td&gt;~€15,500&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;They spend ~60% on maintenance&lt;/td&gt;
&lt;td&gt;~€9,300 wasted&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A pre-built factory subscription&lt;/td&gt;
&lt;td&gt;~€990&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;You're not replacing your engineers. You're &lt;strong&gt;freeing them&lt;/strong&gt; to work on product instead of plumbing.&lt;/p&gt;

&lt;h2&gt;
  
  
  When This Doesn't Work
&lt;/h2&gt;

&lt;p&gt;Let me be clear about the limitations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Multi-cloud&lt;/strong&gt;: If you need Azure or GCP, this is AWS-only.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custom ingress&lt;/strong&gt;: If you need Nginx or Traefik, the factory uses ALB.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Self-managed Prometheus&lt;/strong&gt;: The factory uses CloudWatch Container Insights.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;24/7 on-call&lt;/strong&gt;: The factory vendor provides business-hours support only.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Massive scale&lt;/strong&gt;: If you're running 500+ nodes, you probably need a dedicated platform team anyway.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Mindset Shift
&lt;/h2&gt;

&lt;p&gt;The hardest part isn't the technology. It's accepting that &lt;strong&gt;less choice is more speed&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Every configuration option you add is a configuration option that can drift. Every alternative you support is an alternative you have to test, document, and maintain.&lt;/p&gt;

&lt;p&gt;Constraints are not limitations. Constraints are what make the factory predictable.&lt;/p&gt;




&lt;p&gt;If this resonates, I built a productized version of this approach called &lt;strong&gt;Paved Stack&lt;/strong&gt;. It's a pre-built EKS platform you deploy into your own AWS account.&lt;/p&gt;

&lt;p&gt;Details here → &lt;a href="//pavedstack.com/devto"&gt;pavedstack.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>gitops</category>
      <category>aws</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
