diff --git a/eks-anywhere-baremetal/Testers/Core/snapshot-tester/test-app/claim.yaml b/eks-anywhere-baremetal/Testers/Core/snapshot-tester/test-app/claim.yaml new file mode 100644 index 00000000..70749cc2 --- /dev/null +++ b/eks-anywhere-baremetal/Testers/Core/snapshot-tester/test-app/claim.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: openebs-claim + namespace: default +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 4Gi \ No newline at end of file diff --git a/eks-anywhere-baremetal/Testers/Core/snapshot-tester/test-app/kustomization.yaml b/eks-anywhere-baremetal/Testers/Core/snapshot-tester/test-app/kustomization.yaml new file mode 100644 index 00000000..8a2b46d1 --- /dev/null +++ b/eks-anywhere-baremetal/Testers/Core/snapshot-tester/test-app/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - claim.yaml + - test-app-job.yaml \ No newline at end of file diff --git a/eks-anywhere-baremetal/Testers/Core/snapshot-tester/test-app/test-app-job.yaml b/eks-anywhere-baremetal/Testers/Core/snapshot-tester/test-app/test-app-job.yaml new file mode 100644 index 00000000..12276cab --- /dev/null +++ b/eks-anywhere-baremetal/Testers/Core/snapshot-tester/test-app/test-app-job.yaml @@ -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 \ No newline at end of file