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

New backend for Google CSI Driver #112

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

igoooor
Copy link

@igoooor igoooor commented Jul 8, 2022

This PR adds:

Compute Engine persistent disk CSI Driver
This seems to be the newer driver for PV in GKE, they use a slightly different yaml structure, so I created a new backend called googlecsi that supports this driver

Use csi path instead of deprecated failure-domain.beta.kubernetes.io/* for defining the zone or region
Compared to the google backend we don't need to rely on the deprecated annotationsfailure-domain.beta.kubernetes.io/region and failure-domain.beta.kubernetes.io/zone to retrieve the region and zone, as the PV directly gives that information:

apiVersion: v1
kind: PersistentVolume
metadata:
  name: pvc-<id>
spec:
    ...
  csi:
    ...
    volumeHandle: projects/<project_name>/[zones|regions]/europe-west6-b/disks/pvc-<id>
  ...

You can already test it using that docker image https://hub.docker.com/repository/docker/igoooor/k8s-snapshots

@igoooor
Copy link
Author

igoooor commented Jul 8, 2022

This solves #110

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant