Fix resources isues 2
This commit is contained in:
@@ -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'"
|
||||
command: "drill @127.0.0.1 localhost || exit 1"
|
||||
@@ -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: {}
|
||||
|
||||
@@ -12,5 +12,4 @@ spec:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Gi
|
||||
storageClassName: standard
|
||||
storage: 100Gi
|
||||
@@ -153,5 +153,4 @@ spec:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
storageClassName: standard
|
||||
storage: 1Gi
|
||||
Reference in New Issue
Block a user