Create Persistence Volume Claims
Create a PVC​
Navigate to Cluster Management > Storage > Persistence Volume Claims​
Create a new 100GB PVC​
Save your PVC name​
Mount PVC to pod​
Create a New pod from Workload​
apiVersion: v1
kind: Pod
metadata:
name: nignx-with-pvc
namespace: default
spec:
volumes:
- name: nginx-vol
persistentVolumeClaim:
claimName: bigstack-k8s-vol
containers:
- name: task-pv-container
image: nginx
ports:
- containerPort: 80
name: "http-server"
volumeMounts:
- mountPath: "/usr/share/nginx/html"
name: nginx-vol
Check the mount point​