mirror of
https://gitlab.kube.huskypup.net/Scooby/Homelabv4.git
synced 2026-08-21 05:26:49 +00:00
Fix netbird-operator namespace reference in istio mesh policies
allow-netbird-operator-access (AuthorizationPolicy) and the netbird-operator PeerAuthentication both targeted namespace 'netbird-operator', which has never existed - the actual netbird-operator pod runs in the 'netbird' namespace. This permanently blocked istio-mesh-config from going Synced (kubectl apply failed: namespaces "netbird-operator" not found on every sync attempt). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
3226169af8
commit
bbb80687ca
@@ -275,7 +275,7 @@ spec:
|
|||||||
- from:
|
- from:
|
||||||
- source:
|
- source:
|
||||||
namespaces:
|
namespaces:
|
||||||
- netbird-operator
|
- netbird
|
||||||
- from:
|
- from:
|
||||||
- source:
|
- source:
|
||||||
namespaces:
|
namespaces:
|
||||||
@@ -288,11 +288,15 @@ spec:
|
|||||||
|
|
||||||
---
|
---
|
||||||
# --- Netbird Operator: Allow intra-namespace + Prometheus ---
|
# --- Netbird Operator: Allow intra-namespace + Prometheus ---
|
||||||
|
# Operator runs in the "netbird" namespace, not "netbird-operator" (which
|
||||||
|
# doesn't exist) - fixed 2026-08-17, was blocking istio-mesh-config from
|
||||||
|
# ever going Synced (kubectl apply failed: "namespaces netbird-operator
|
||||||
|
# not found").
|
||||||
apiVersion: security.istio.io/v1
|
apiVersion: security.istio.io/v1
|
||||||
kind: AuthorizationPolicy
|
kind: AuthorizationPolicy
|
||||||
metadata:
|
metadata:
|
||||||
name: allow-netbird-operator-access
|
name: allow-netbird-operator-access
|
||||||
namespace: netbird-operator
|
namespace: netbird
|
||||||
spec:
|
spec:
|
||||||
action: ALLOW
|
action: ALLOW
|
||||||
rules:
|
rules:
|
||||||
@@ -300,7 +304,7 @@ spec:
|
|||||||
- from:
|
- from:
|
||||||
- source:
|
- source:
|
||||||
namespaces:
|
namespaces:
|
||||||
- netbird-operator
|
- netbird
|
||||||
# Prometheus scraping (L4-only)
|
# Prometheus scraping (L4-only)
|
||||||
- from:
|
- from:
|
||||||
- source:
|
- source:
|
||||||
|
|||||||
@@ -23,11 +23,13 @@ spec:
|
|||||||
mode: PERMISSIVE
|
mode: PERMISSIVE
|
||||||
---
|
---
|
||||||
# Netbird operator webhook receives calls from the API server
|
# Netbird operator webhook receives calls from the API server
|
||||||
|
# (namespace is "netbird", not "netbird-operator" - that namespace
|
||||||
|
# doesn't exist; fixed 2026-08-17)
|
||||||
apiVersion: security.istio.io/v1
|
apiVersion: security.istio.io/v1
|
||||||
kind: PeerAuthentication
|
kind: PeerAuthentication
|
||||||
metadata:
|
metadata:
|
||||||
name: allow-apiserver-webhooks
|
name: allow-apiserver-webhooks
|
||||||
namespace: netbird-operator
|
namespace: netbird
|
||||||
spec:
|
spec:
|
||||||
mtls:
|
mtls:
|
||||||
mode: PERMISSIVE
|
mode: PERMISSIVE
|
||||||
|
|||||||
Reference in New Issue
Block a user