<p>I have deployed pihole on my k3s cluster using this helm chart <a href="https://github.com/MoJo2600/pihole-kubernetes" rel="nofollow noreferrer">https://github.com/MoJo2600/pihole-kubernetes</a>.<br />
(I used this <a href="https://www.jeffgeerling.com/blog/2020/raspberry-pi-cluster-episode-4-minecraft-pi-hole-grafana-and-more" rel="nofollow noreferrer">tutorial</a>)<br />
I now have my services but they dont have external IPs:</p>
<pre><code>NAME             TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE
pihole-web       ClusterIP   10.43.58.197    &lt;none&gt;        80/TCP,443/TCP   11h
pihole-dns-udp   NodePort    10.43.248.252   &lt;none&gt;        53:30451/UDP     11h
pihole-dns-tcp   NodePort    10.43.248.144   &lt;none&gt;        53:32260/TCP     11h
pihole-dhcp      NodePort    10.43.96.49     &lt;none&gt;        67:30979/UDP     11h
</code></pre>
<p>I have tried to assing the IPs manually with this command:</p>
<pre><code>kubectl patch svc pihole-dns-tcp -p '{&quot;spec&quot;:{&quot;externalIPs&quot;:[&quot;192.168.178.210&quot;]}}'
</code></pre>
<p>But when executing the command i'm getting this error:</p>
<pre><code>Error from server (NotFound): services &quot;pihole-dns-tcp&quot; not found
</code></pre>
<p>Any Ideas for a fix?<br />
Thank you in advance :)</p>

<ul>
<li><p>Looks Like &quot;pihole-dns-tcp&quot; is in a different namespace to the namespace where patch command is being ran.</p>
</li>
<li><p>As per the article you have shared , it seems like service <code>pihole-dns-tcp</code> is in <code>pihole </code>. So the command should be</p>
</li>
</ul>
<p><code>kubectl patch svc pihole-dns-tcp -n pihole -p '{&quot;spec&quot;:{&quot;externalIPs&quot;:[&quot;192.168.178.210&quot;]}}'  </code></p>
