Skip to content

Commit

Permalink
Re-adding Test App, modified to use default storage class for openebs…
Browse files Browse the repository at this point in the history
…-claim
  • Loading branch information
mikemcd3912 committed Mar 13, 2024
1 parent 30522f6 commit d7c34c5
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: openebs-claim
namespace: default
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 4Gi
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- claim.yaml
- test-app-job.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
apiVersion: batch/v1
kind: Job
metadata:
name: app
namespace: default
spec:
backoffLimit: 3
template:
spec:
containers:
- name: app
image: centos
imagePullPolicy: IfNotPresent
command: ["/bin/sh"]
args: ["-c", "while true; do echo $(date -u) >> /data/out.txt; sleep 5; done"]
volumeMounts:
- name: persistent-storage
mountPath: /data
restartPolicy: OnFailure
volumes:
- name: persistent-storage
persistentVolumeClaim:
claimName: openebs-claim

0 comments on commit d7c34c5

Please sign in to comment.