From 668c91d51b52150669863e56a2b7da892de3b9c9 Mon Sep 17 00:00:00 2001 From: Aliaksei Ivanou Date: Wed, 22 Mar 2023 12:21:23 -0500 Subject: [PATCH] Adding a pod using the PVC --- .../templates/ebs-ecncrypted-storage-pvc.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/teams/team-data/dev/templates/ebs-ecncrypted-storage-pvc.yaml b/teams/team-data/dev/templates/ebs-ecncrypted-storage-pvc.yaml index 8724feb33..f6466c668 100644 --- a/teams/team-data/dev/templates/ebs-ecncrypted-storage-pvc.yaml +++ b/teams/team-data/dev/templates/ebs-ecncrypted-storage-pvc.yaml @@ -9,3 +9,21 @@ spec: requests: storage: 10Gi storageClassName: gp2-encrypted +--- +apiVersion: v1 +kind: Pod +metadata: + name: ebs-encryption-app +spec: + containers: + - name: app + image: centos + command: ["/bin/sh"] + args: ["-c", "while true; do echo $(date -u) >> /example/out.txt; sleep 5; done"] + volumeMounts: + - name: persistent-storage + mountPath: /example + volumes: + - name: persistent-storage + persistentVolumeClaim: + claimName: gp2-encrypted-pvc \ No newline at end of file