CFN Cloud
Cloud Future New Life
en zh
2025-10-09 · 0 views

Ephemeral Volumes

Ephemeral volumes live with the Pod and fit cache or temp files.

Ephemeral volumes are deleted with the Pod. They are ideal for cache and temporary files.

Typical use cases

  • Runtime cache
  • Intermediate artifacts
  • Shared data between main and sidecar

Example

volumes:
  - name: scratch
    emptyDir:
      sizeLimit: 1Gi

Notes

  • Not suitable for business data
  • Node disk pressure can block scheduling

Practical notes

  • Start with a quick inventory: kubectl get nodes, kubectl get pods -A, and kubectl get events -A.
  • Compare desired vs. observed state; kubectl describe usually explains drift or failed controllers.
  • Keep names, labels, and selectors consistent so Services and controllers can find Pods.

Quick checklist

  • The resource matches the intent you described in YAML.
  • Namespaces, RBAC, and images are correct for the target environment.
  • Health checks and logs are in place before promotion.

References