<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>My notes and stuff - Debugging</title>
    <subtitle>This is just a space for me to share some notes and thoughts. I hope someone finds something useful here.</subtitle>
    <link rel="self" type="application/atom+xml" href="https://suchaboris.com/tags/debugging/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://suchaboris.com/"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2025-11-02T00:00:00+00:00</updated>
    <id>https://suchaboris.com/tags/debugging/atom.xml</id>
    <entry xml:lang="en">
        <title>Debugging K8s Network Policies</title>
        <published>2025-11-02T00:00:00+00:00</published>
        <updated>2025-11-02T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://suchaboris.com/blog/debugging-k8s-network-policies/"/>
        <id>https://suchaboris.com/blog/debugging-k8s-network-policies/</id>
        
        <content type="html" xml:base="https://suchaboris.com/blog/debugging-k8s-network-policies/">&lt;p&gt;My focus last week (in personal projects space) was to add network policies to my &lt;strong&gt;homelab&lt;&#x2F;strong&gt;. I added them to all custom namespaces but, in the end, had to revert some and replace them with less restrictive ones because some things just stopped working, and I had no time to investigate why.&lt;&#x2F;p&gt;
&lt;p&gt;The biggest challenge was in the very beginning when none of the policies I added did anything. Everything looked good in the logs and on the &lt;strong&gt;K8s&lt;&#x2F;strong&gt; cluster. I mean, there were no errors or reports of invalid configs.&lt;&#x2F;p&gt;
&lt;p&gt;After several hours of cumulative debugging, checking all configs, and brainstorming with AI, I found that my nodes just didn&#x27;t have the &lt;strong&gt;iptables&lt;&#x2F;strong&gt; binary! 🤦&lt;&#x2F;p&gt;
&lt;p&gt;Everything looked great in the logs, but no rules were enforced. After adding the binary and updating my bootstrap scripts, all the rules started working as intended.&lt;&#x2F;p&gt;
</content>
        
    </entry>
</feed>
