k8s deployment with persistentVolume
- kind: Deployment
- apiVersion: apps/v1
- metadata:
- name: mut-deployment
- namespace: default
- labels:
- app: mut
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: mut
- template:
- metadata:
- labels:
- app: mut
- spec:
- volumes:
- - name: testcase-storage
- persistentVolumeClaim:
- claimName: mut-pvc
- containers:
- - name: mut
- image: 'mut:20210531'
- ports:
- - containerPort: 8080
- protocol: TCP
- resources: {}
- volumeMounts:
- - name: testcase-storage
- mountPath: /testcase