Skip to content

Commit

Permalink
Adding a pod using the PVC
Browse files Browse the repository at this point in the history
  • Loading branch information
aliaksei-ivanou committed Mar 22, 2023
1 parent 8ede69b commit 668c91d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions teams/team-data/dev/templates/ebs-ecncrypted-storage-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 668c91d

Please sign in to comment.