2017-12-06 02:37:00 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Pod
|
|
|
|
metadata:
|
|
|
|
name: volume-test
|
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: volume-test
|
2018-03-22 22:53:42 +00:00
|
|
|
image: nginx:stable-alpine
|
2017-12-06 02:37:00 +00:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
volumeMounts:
|
|
|
|
- name: voll
|
|
|
|
mountPath: /data
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
volumes:
|
|
|
|
- name: voll
|
|
|
|
flexVolume:
|
|
|
|
driver: "rancher.io/longhorn"
|
|
|
|
fsType: "ext4"
|
|
|
|
options:
|
2018-03-22 22:53:42 +00:00
|
|
|
size: "2Gi"
|
|
|
|
numberOfReplicas: "3"
|
2017-12-06 02:37:00 +00:00
|
|
|
staleReplicaTimeout: "20"
|
|
|
|
fromBackup: ""
|