azuredisk-csi-driver

module
v1.28.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2023 License: Apache-2.0

README

Azure Disk CSI driver for Kubernetes

linux build status windows build status Coverage Status FOSSA Status

About

This driver allows Kubernetes to access Azure Disk volume, csi plugin name: disk.csi.azure.com, supported accessModes: ReadWriteOnce

Disclaimer: Deploying this driver manually is not an officially supported Microsoft product. For a fully managed and supported experience on Kubernetes, use AKS with the managed Azure disk csi driver.

Project status

V1: GA

V2: Preview

Container Images & Kubernetes Compatibility
V1
Driver Version Image supported k8s version
master branch mcr.microsoft.com/k8s/csi/azuredisk-csi:latest 1.21+
v1.28.0 mcr.microsoft.com/oss/kubernetes-csi/azuredisk-csi:v1.28.0 1.21+
v1.27.1 mcr.microsoft.com/oss/kubernetes-csi/azuredisk-csi:v1.27.1 1.21+
v1.26.4 mcr.microsoft.com/oss/kubernetes-csi/azuredisk-csi:v1.26.4 1.21+
V2
Driver Version Image supported k8s version
main_v2 branch 1.21+
v2.0.0-beta.6 mcr.microsoft.com/oss/kubernetes-csi/azuredisk-csi:v2.0.0-beta.6 1.21+
Driver parameters

Please refer to disk.csi.azure.com driver parameters

storage class disk.csi.azure.com parameters are compatible with built-in azuredisk plugin

Prerequisite
  • The driver depends on cloud provider config file (here is config example), config file path on different platforms:
  • specify a different config file path via configmap
    create configmap "azure-cred-file" before driver starts up
    kubectl create configmap azure-cred-file --from-literal=path="/etc/kubernetes/cloud.conf" --from-literal=path-windows="C:\\k\\cloud.conf" -n kube-system
  • edge zone support in cloud provider config
    `extendedLocationType` and `extendedLocationName` should be added into cloud provider config file, available values of `extendedLocationName` are `attatlanta1`, `attdallas1`, `attnewyork1`, `attdetroit1`
    ```"extendedLocationType": "edgezone","extendedLocationName": "attatlanta1",```
  • Cloud provider config can also be specified via kubernetes secret, check details here
  • Make sure identity used by driver has Contributor role on node resource group
    • When install open source driver on the cluster, ensure agentpool service principal or managed service identity is assigned to the Contributor role on the resource group used to store managed disks.
Install driver on a Kubernetes cluster
Install Azure Disk CSI Driver V2 on a Kubernetes cluster (Preview)
Examples
Features
New in V2
Troubleshooting
Support
Limitations

Kubernetes Development

View CI Results

Directories

Path Synopsis
hack
pkg
azuredisk/mockcorev1
Package mockcorev1 implements the mock client for corev1.
Package mockcorev1 implements the mock client for corev1.
azuredisk/mockkubeclient
Package mockkubeclient implements the mock client for kubeclient.
Package mockkubeclient implements the mock client for kubeclient.
azuredisk/mockpersistentvolume
Package mockpersistentvolume implements the mock client for persistentvolumegetter.
Package mockpersistentvolume implements the mock client for persistentvolumegetter.
optimization/mockoptimization
Package mockpersistentvolume implements mocks for the optimization package.
Package mockpersistentvolume implements mocks for the optimization package.
test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL