-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-adding Test App, modified to use default storage class for openebs…
…-claim
- Loading branch information
1 parent
30522f6
commit d7c34c5
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
eks-anywhere-baremetal/Testers/Core/snapshot-tester/test-app/claim.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
5 changes: 5 additions & 0 deletions
5
eks-anywhere-baremetal/Testers/Core/snapshot-tester/test-app/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
24 changes: 24 additions & 0 deletions
24
eks-anywhere-baremetal/Testers/Core/snapshot-tester/test-app/test-app-job.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |