longhorn/examples/simple_pod.yaml
Sheng Yang fc04775b45 Sync with Longhorn manager
Author: Sheng Yang <sheng.yang@rancher.com>
Date:   Sat Feb 29 18:29:21 2020 -0800

    example: Explain the magic number of staleReplicaTimeout

    Signed-off-by: Sheng Yang <sheng.yang@rancher.com>

Signed-off-by: Sheng Yang <sheng.yang@rancher.com>
2020-02-29 18:42:08 -08:00

28 lines
584 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: longhorn-simple-pod
namespace: default
spec:
restartPolicy: Always
containers:
- name: volume-test
image: nginx:stable-alpine
imagePullPolicy: IfNotPresent
livenessProbe:
exec:
command:
- ls
- /data/lost+found
initialDelaySeconds: 5
periodSeconds: 5
volumeMounts:
- name: volv
mountPath: /data
ports:
- containerPort: 80
volumes:
- name: volv
persistentVolumeClaim:
claimName: longhorn-simple-pvc