Example 1
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv0003
spec:
capacity:
storage: 5Gi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Recycle
storageClassName: slow
mountOptions:
- hard
- nfsvers=4.1
nfs:
path: /tmp
server: 172.17.0.2
Example 2
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: gp2-retain
annotations:
provisioner: kubernetes.io/aws-ebs
parameters:
type: gp2
fsType: ext4
reclaimPolicy: Retain
Example 3
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: custom
provisioner: docker.io/hostpath
reclaimPolicy: Retain
volumeBindingMode: Immediate
Example 4
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv0003
spec:
capacity:
storage: 5Gi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Recycle
storageClassName: slow
mountOptions:
- hard
- nfsvers=4.1
nfs:
path: /tmp
server: 172.17.0.2
Kubernetes Advance Tutorials Deepdive Part-1 Session -1 — By DevOpsSchool
Kubernetes Advance Tutorials Deepdive Part-1 Session -2 — By DevOpsSchool
Kubernetes Advance Tutorials Deepdive Part-1 Session -3 — By DevOpsSchool
Kubernetes Advance Tutorials Deepdive Part-1 Session -4 — By DevOpsSchool
Kubernetes Advance Tutorials Deepdive Part-1 Session -5 — By DevOpsSchool
Kubernetes Advance Tutorials Deepdive Part-1 Session -6 — By DevOpsSchool
Kubernetes Advance Tutorials Deepdive Part-1 Session -7 — By DevOpsSchool
Kubernetes Advance Tutorials Deepdive Part-1 Session -8 — By DevOpsSchool
Kubernetes Advance Tutorials Deepdive Part-1 Session -9 — By DevOpsSchool
Kubernetes Advance Tutorials Deepdive Part-1 Session -10 — By DevOpsSchool
Latest posts by Rajesh Kumar (see all)
- Gradle versions, their supported Java versions, and unsupported Java versions - December 23, 2024
- An Introduction of GitLab Duo - December 22, 2024
- Best Hospitals for affordable surgery for medical tourism - December 20, 2024