-
Notifications
You must be signed in to change notification settings - Fork 45
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
CSI driver GitOps Blog Edits #246
Changes from 11 commits
72ce932
b7b1d36
0fc9389
4a21445
27d6710
bcfb0d7
97029cd
04560f4
6d37594
80486ef
c7ea7b4
a4c38de
b27e81b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
name: vmware-csi-namespace-kustomization | ||
namespace: flux-system | ||
labels: | ||
app: vmware-csi-driver | ||
spec: | ||
interval: 1m0s | ||
path: ./eks-anywhere-vsphere/Addons/Core/storage-driver/vmware-csi/vmware-csi-namespace | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: addons | ||
healthChecks: | ||
- apiVersion: v1 | ||
kind: Namespace | ||
name: vmware-system-csi | ||
--- | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
name: vmware-csi-secrets-kustomization | ||
namespace: flux-system | ||
labels: | ||
app: vmware-csi-driver | ||
spec: | ||
dependsOn: | ||
- name: vmware-csi-namespace-kustomization | ||
interval: 1m0s | ||
path: ./eks-anywhere-vsphere/Addons/Core/storage-driver/vmware-csi/vmware-csi-secrets | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: addons | ||
healthChecks: | ||
- apiVersion: v1 | ||
kind: Secret | ||
name: vsphere.conf | ||
namespace: kube-system | ||
- apiVersion: v1 | ||
kind: Secret | ||
name: vsphere-config-secret | ||
namespace: vmware-system-csi | ||
--- | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
name: vmware-csi-driver-kustomization | ||
namespace: flux-system | ||
labels: | ||
app: vmware-csi-driver | ||
spec: | ||
dependsOn: | ||
- name: vmware-csi-secrets-kustomization | ||
interval: 1m0s | ||
path: ./eks-anywhere-vsphere/Addons/Core/storage-driver/vmware-csi/vmware-csi-manifests | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: addons |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: snapshot.storage.k8s.io/v1 | ||
kind: VolumeSnapshotClass | ||
metadata: | ||
name: vmware-csi-snapshotclass | ||
driver: csi.vsphere.vmware.com | ||
deletionPolicy: Delete |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
apiVersion: snapshot.storage.k8s.io/v1 | ||
kind: VolumeSnapshot | ||
metadata: | ||
name: openebs-volume-snapshot | ||
name: vmware-csi-volume-snapshot | ||
namespace: default | ||
spec: | ||
volumeSnapshotClassName: csi-cstor-snapshotclass | ||
volumeSnapshotClassName: vmware-csi-snapshotclass | ||
source: | ||
persistentVolumeClaimName: openebs-claim | ||
persistentVolumeClaimName: vmware-csi-claim |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: openebs-claim | ||
name: vmware-csi-claim | ||
namespace: default | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
storageClassName: openebs-csi-cstor-sparse | ||
storageClassName: vmware-sc | ||
resources: | ||
requests: | ||
storage: 4Gi |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need 3 Kustomizations for Ordering?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested it end to end and confirmed it works, I can test again if we'd like screenshots.
3 Kustomizations to enforce ordering was to ensure the driver would deploy after the secrets because immutability of the deployment was causing it to fail if the secret took longer than the driver. I did enable restarts however after creating this order enforcement so I'll test to see if we can simplify it with that enabled when I re-test for screenshots
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes lets get some screenshots to PR. Its lot changes so we want to make sure we document the outputs.