Created
July 28, 2023 07:11
-
-
Save blackpiglet/6d4615f35415071920f9f94196bf034a 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: Namespace | |
metadata: | |
name: upgrade | |
--- | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: pvc-0 | |
namespace: upgrade | |
labels: | |
app: hello-app | |
annotations: | |
velero.io/csi-volumesnapshot-class: velero | |
spec: | |
storageClassName: standard-rwo | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 5Gi | |
--- | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: pvc-1 | |
namespace: upgrade | |
labels: | |
app: hello-app | |
annotations: | |
velero.io/csi-volumesnapshot-class: csi-diskdriver-snapclass | |
spec: | |
storageClassName: standard-rwo | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 5Gi | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: hello-app | |
namespace: upgrade | |
labels: | |
app: hello-app | |
spec: | |
selector: | |
matchLabels: | |
app: hello-app | |
template: | |
metadata: | |
labels: | |
app: hello-app | |
spec: | |
containers: | |
- name: hello-app | |
image: nginx:1.25.1 | |
args: [ "sleep", "3600" ] | |
volumeMounts: | |
- name: pvc-0 | |
mountPath: /usr/share/pvc-0/ | |
- name: pvc-1 | |
mountPath: /usr/share/pvc-1/ | |
volumes: | |
- name: pvc-0 | |
persistentVolumeClaim: | |
claimName: pvc-0 | |
- name: pvc-1 | |
persistentVolumeClaim: | |
claimName: pvc-1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment