How can Compose wait for a dependency health check?
Compose can use a health check on a dependency and a condition such as service_healthy where supported. This helps startup ordering but does not
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 1525–1536 of 3610 questions
Compose can use a health check on a dependency and a condition such as service_healthy where supported. This helps startup ordering but does not
Resource limits prevent one container from consuming unbounded host resources. Memory limits can lead to OOM termination; CPU limits throttle exe
Tags are mutable references, while a digest identifies exact image content. Digests improve reproducibility; update them through a controlled pat
Avoid baking credentials into image layers or committing them to source control. Use an appropriate secret manager or orchestrator secret mechani
Applications should generally write structured logs to stdout/stderr, while a platform or logging driver collects, routes, and retains them. Set
A Deployment manages ReplicaSets and keeps the desired number of Pods running. It supports declarative updates and rollbacks; a standalone Pod do
ClusterIP exposes a service inside the cluster; NodePort exposes a port on cluster nodes; LoadBalancer requests an external load balancer when su
Readiness controls whether a Pod receives traffic; liveness detects a stuck container and may trigger restart; startup gives slow-starting applic
ConfigMaps store non-confidential configuration; Secrets are intended for sensitive values but require appropriate encryption-at-rest and access
Requests influence scheduling and represent expected resource allocation; limits cap usage. CPU excess is throttled, while exceeding a memory lim
HPA adjusts workload replicas based on configured metrics such as CPU utilization or custom/external metrics. Resource requests and metrics avail
A Deployment gradually replaces old Pods with new ones based on maxSurge and maxUnavailable. Readiness probes and adequate capacity are important