longhorn/examples/example.yaml
Sheng Yang 1c346eb3f6
K8s support (#22)
* Update to reflect k8s deployment

* Fix a typo

* Update README.md
2017-12-06 10:37:00 +08:00

26 lines
482 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: volume-test
namespace: default
spec:
containers:
- name: volume-test
image: nginx
imagePullPolicy: IfNotPresent
volumeMounts:
- name: voll
mountPath: /data
ports:
- containerPort: 80
volumes:
- name: voll
flexVolume:
driver: "rancher.io/longhorn"
fsType: "ext4"
options:
size: "2G"
numberOfReplicas: "2"
staleReplicaTimeout: "20"
fromBackup: ""