PVC的使用
apiVersion: v1
kind: Pod
metadata:
name: task-pv
labels:
name: task-pv
spec:
volumes:
- name: task-pv-storage
persistentVolumeClaim:
claimName: pvc-hostPath
containers:
- name: task-pv
image: nginx:1.25.3
volumeMounts:
- name: task-pv-storage
mountPath: /usr/share/nginx/html
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 80最后更新于