Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VMware CSI Driver GitOps Blog modification #249

Merged
merged 2 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: restored-vmware-csi-claim
namespace: default
spec:
accessModes:
- ReadWriteOnce
storageClassName: vmware-sc
resources:
requests:
storage: 4Gi
dataSource:
name: vmware-csi-volume-snapshot
kind: VolumeSnapshot
apiGroup: snapshot.storage.k8s.io
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: v1
kind: Pod
metadata:
name: app-restore
namespace: default
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: restored-vmware-csi-claim
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,19 @@ spec:
namespace: flux-system
interval: 1m0s
prune: true
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: snapshot-restore
namespace: flux-system
spec:
dependsOn:
- name: snapshot
path: "./eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-restore"
sourceRef:
kind: GitRepository
name: addons
namespace: flux-system
interval: 1m0s
prune: true
Loading