Created
January 12, 2023 10:51
-
-
Save PabloHiro/4978fbcbc372ce524e27c0b7166cecd6 to your computer and use it in GitHub Desktop.
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
--- | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: test | |
namespace: default | |
spec: | |
containers: | |
- command: | |
- sh | |
- -c | |
- sleep 36000000 | |
image: bash | |
name: test-container | |
volumeMounts: | |
- mountPath: "/mnt" | |
name: test-volume | |
volumes: | |
- name: test-volume | |
persistentVolumeClaim: | |
claimName: testclaim | |
--- | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: testclaim | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 500Mi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment