Skip to content

Commit

Permalink
Create pod.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
riyasoni5990 authored May 11, 2023
1 parent 6e4c8d8 commit e564c28
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions PV-PVC/pod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: v1
kind: Pod
metadata:
name: app
spec:
containers:
- name: app
image: centos
command: ["/bin/sh"]
args: ["-c", "while true; do echo $(date -u) >> /data/out.txt; sleep 5; done"]
volumeMounts:
- name: persistent-storage
mountPath: /data
volumes:
- name: persistent-storage
persistentVolumeClaim:
claimName: ebs-claim

0 comments on commit e564c28

Please sign in to comment.