Skip to content

Commit

Permalink
Add an example that uses a generic ephemeral volume
Browse files Browse the repository at this point in the history
Longhorn 8198

Signed-off-by: Eric Weber <eric.weber@suse.com>
(cherry picked from commit c557f1d)
  • Loading branch information
ejweber authored and innobead committed Mar 21, 2024
1 parent 8b15283 commit 1cd64d6
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions examples/pod_with_gev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: v1
kind: Pod
metadata:
name: volume-test
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
ephemeral:
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 2Gi

0 comments on commit 1cd64d6

Please sign in to comment.