From 89ec45a7c1de83bab973e023d435ae7e9c955126 Mon Sep 17 00:00:00 2001 From: Bakery Admin Date: Thu, 22 Jan 2026 10:07:05 +0100 Subject: [PATCH] Fix resources isues 2 --- .../dns/unbound-helm/prod/values.yaml | 5 +++-- .../networking/dns/unbound-helm/values.yaml | 19 +++++++------------ .../platform/storage/minio/minio-pvc.yaml | 3 +-- .../services/databases/demo-session-db.yaml | 3 +-- 4 files changed, 12 insertions(+), 18 deletions(-) diff --git a/infrastructure/platform/networking/dns/unbound-helm/prod/values.yaml b/infrastructure/platform/networking/dns/unbound-helm/prod/values.yaml index ee065faa..878c5757 100644 --- a/infrastructure/platform/networking/dns/unbound-helm/prod/values.yaml +++ b/infrastructure/platform/networking/dns/unbound-helm/prod/values.yaml @@ -55,12 +55,13 @@ podAnnotations: # topologyKey: "kubernetes.io/hostname" # Production probe settings (more conservative) +# NOTE: mvance/unbound image does NOT have 'nc' (netcat), use 'drill' instead probes: readiness: initialDelaySeconds: 10 periodSeconds: 30 - command: "sh -c 'echo \"\" | nc -w 3 127.0.0.1 53 || exit 1'" + command: "drill @127.0.0.1 localhost || exit 1" liveness: initialDelaySeconds: 30 periodSeconds: 60 - command: "sh -c 'echo \"\" | nc -w 3 127.0.0.1 53 || exit 1'" \ No newline at end of file + command: "drill @127.0.0.1 localhost || exit 1" \ No newline at end of file diff --git a/infrastructure/platform/networking/dns/unbound-helm/values.yaml b/infrastructure/platform/networking/dns/unbound-helm/values.yaml index b11d4619..15051386 100644 --- a/infrastructure/platform/networking/dns/unbound-helm/values.yaml +++ b/infrastructure/platform/networking/dns/unbound-helm/values.yaml @@ -46,25 +46,20 @@ service: dnsTcp: 53 # Health probes configuration +# NOTE: mvance/unbound image does NOT have 'nc' (netcat), use 'drill' instead probes: readiness: enabled: true - initialDelaySeconds: 15 + initialDelaySeconds: 10 periodSeconds: 30 - # Simple TCP connectivity check - more reliable than DNS queries - # Tests if the DNS port is listening and responding - command: "sh -c 'echo \"\" | nc -w 2 127.0.0.1 53 || exit 1'" - # Alternative: use curl if available - # command: "curl -s --max-time 2 http://127.0.0.1:53 || exit 1" + # Use drill (DNS lookup tool included in unbound image) + command: "drill @127.0.0.1 localhost || exit 1" liveness: enabled: true - initialDelaySeconds: 45 + initialDelaySeconds: 30 periodSeconds: 60 - # Simple TCP connectivity check - more reliable than DNS queries - # Tests if the DNS port is listening and responding - command: "sh -c 'echo \"\" | nc -w 2 127.0.0.1 53 || exit 1'" - # Alternative: use curl if available - # command: "curl -s --max-time 2 http://127.0.0.1:53 || exit 1" + # Use drill (DNS lookup tool included in unbound image) + command: "drill @127.0.0.1 localhost || exit 1" # Additional environment variables env: {} diff --git a/infrastructure/platform/storage/minio/minio-pvc.yaml b/infrastructure/platform/storage/minio/minio-pvc.yaml index 4db1f2a4..a585c50e 100644 --- a/infrastructure/platform/storage/minio/minio-pvc.yaml +++ b/infrastructure/platform/storage/minio/minio-pvc.yaml @@ -12,5 +12,4 @@ spec: - ReadWriteOnce resources: requests: - storage: 100Gi - storageClassName: standard \ No newline at end of file + storage: 100Gi \ No newline at end of file diff --git a/infrastructure/services/databases/demo-session-db.yaml b/infrastructure/services/databases/demo-session-db.yaml index 21fbb34e..d02a129e 100644 --- a/infrastructure/services/databases/demo-session-db.yaml +++ b/infrastructure/services/databases/demo-session-db.yaml @@ -153,5 +153,4 @@ spec: - ReadWriteOnce resources: requests: - storage: 1Gi - storageClassName: standard \ No newline at end of file + storage: 1Gi \ No newline at end of file