_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN
Let's talk

Kubernetes Persistent Volumes

08. 03. 2024 1 min read intermediate

Cloud Intermediate

Kubernetes Persistent Volumes

KubernetesStorageVolumes 3 min read

Persistentní storage v Kubernetes. PV, PVC, StorageClass a cloud provider integrace.

PVC příklad

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: postgres-data
spec:
  accessModes: [ReadWriteOnce]
  storageClassName: gp3
  resources:
    requests:
      storage: 50Gi
---
apiVersion: apps/v1
kind: StatefulSet
spec:
  template:
    spec:
      containers:
        - name: postgres
          volumeMounts:
            - name: data
              mountPath: /var/lib/postgresql/data
      volumes:
        - name: data
          persistentVolumeClaim:
            claimName: postgres-data

Access Modes

  • ReadWriteOnce (RWO) — jeden node, read-write
  • ReadOnlyMany (ROX) — více nodů, read-only
  • ReadWriteMany (RWX) — více nodů, read-write (NFS, EFS)

Summary

PVC abstrahuje storage provider. Vždy použijte StorageClass pro dynamické provisioning.

Need Help with Implementation?

Our team has experience designing and implementing modern architectures. We’re happy to help.

Free Consultation

Share:

CORE SYSTEMS tým

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.