Fix n8n, gitlab, and netbird-operator degraded states

- n8n: Set replicaCount=1 (RWO PVC incompatible with multiple replicas),
  add resource limits to satisfy Kyverno policy
- gitlab: Add ignoreDifferences for redis-gitlab-additional service
  (port names and selectors managed by Redis operator)
- netbird-operator: Add ExternalSecret for netbird-mgmt-api-key in
  netbird namespace and add manifests source to Application

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Scooby Husky
2026-03-10 19:53:10 -05:00
co-authored by Claude Opus 4.6
parent 1d5e216b68
commit 7a8eb2046f
4 changed files with 34 additions and 3 deletions
+5 -3
View File
@@ -40,8 +40,8 @@ config:
secret: {} secret: {}
# --- Deployment replicas --- # --- Deployment replicas ---
# Increased to 2 for high availability and faster response times # Single replica required: RWO PVC can't be shared across pods on different nodes
replicaCount: 2 replicaCount: 1
# --- Service configuration --- # --- Service configuration ---
service: service:
@@ -72,11 +72,13 @@ persistence:
size: 10Gi size: 10Gi
# --- Resources --- # --- Resources ---
# No CPU limits (burst allowed). Keep requests minimal for scheduling.
resources: resources:
requests: requests:
cpu: 100m cpu: 100m
memory: 512Mi memory: 512Mi
limits:
cpu: "1"
memory: 1Gi
# --- Startup probe --- # --- Startup probe ---
# Allows app to start without being killed by liveness probe # Allows app to start without being killed by liveness probe
+8
View File
@@ -25,6 +25,14 @@ spec:
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc
namespace: gitlab namespace: gitlab
ignoreDifferences:
# Redis operator reconciles this service with different port names and selectors
- group: ""
kind: Service
name: redis-gitlab-additional
jsonPointers:
- /spec/ports
- /spec/selector
syncPolicy: syncPolicy:
automated: automated:
prune: true prune: true
@@ -19,6 +19,9 @@ spec:
- repoURL: https://gitlab.kube.huskypup.net/Scooby/Homelabv4.git - repoURL: https://gitlab.kube.huskypup.net/Scooby/Homelabv4.git
targetRevision: main targetRevision: main
ref: values ref: values
- repoURL: https://gitlab.kube.huskypup.net/Scooby/Homelabv4.git
targetRevision: main
path: infrastructure/netbird-operator/manifests
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc
namespace: netbird namespace: netbird
@@ -0,0 +1,18 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: netbird-mgmt-api-key
namespace: netbird
spec:
refreshInterval: 1h
secretStoreRef:
kind: ClusterSecretStore
name: vault-backend
target:
name: netbird-mgmt-api-key
creationPolicy: Owner
data:
- secretKey: NB_API_KEY
remoteRef:
key: netbird-api-token
property: api-token