Skip to content

Commit

Permalink
doc: promote NFS feature to beta
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Jan 2, 2021
1 parent 82cb2d4 commit 88297af
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 28 deletions.
6 changes: 3 additions & 3 deletions deploy/example/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ spec:
kubernetes.io/os: linux
containers:
- name: nginx
image: mcr.microsoft.com/oss/nginx/nginx:1.17.3-alpine
image: mcr.microsoft.com/oss/nginx/nginx:1.19.5
command:
- "/bin/sh"
- "/bin/bash"
- "-c"
- while true; do echo $(date) >> /mnt/azurefile/outfile; sleep 1; done
- set -euo pipefail; while true; do echo $(date) >> /mnt/azurefile/outfile; sleep 1; done
volumeMounts:
- name: azurefile
mountPath: "/mnt/azurefile"
Expand Down
6 changes: 3 additions & 3 deletions deploy/example/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ spec:
"kubernetes.io/os": linux
containers:
- name: deployment-azurefile
image: mcr.microsoft.com/oss/nginx/nginx:1.17.3-alpine
image: mcr.microsoft.com/oss/nginx/nginx:1.19.5
command:
- "/bin/sh"
- "/bin/bash"
- "-c"
- while true; do echo $(date) >> /mnt/azurefile/outfile; sleep 1; done
- set -euo pipefail; while true; do echo $(date) >> /mnt/azurefile/outfile; sleep 1; done
volumeMounts:
- name: azurefile
mountPath: "/mnt/azurefile"
Expand Down
14 changes: 7 additions & 7 deletions deploy/example/nfs/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
## NFS support
[NFS 4.1 support for Azure Files](https://azure.microsoft.com/en-us/blog/nfs-41-support-for-azure-files-is-now-in-preview/preview/) is now in Public Preview. This service is optimized for random access workloads with in-place data updates and provides full POSIX file system support. This page shows how to use NFS feature by Azure File CSI driver on Azure Kubernetes cluster.

#### Feature Status: Alpha
#### Feature Status: Beta
> supported OS: Linux
#### Supported CSI driver version: `v0.8.0`
#### Supported CSI driver version: `v0.9.0`
> storage account dynamic provisioning is supported from `v0.10.0`.
#### [Available regions](https://aka.ms/azurefiles/nfs/preview/regions)
We are continually adding more regions. Latest region list is available on [Azure NFS documentation](https://aka.ms/azurefiles/nfs/preview/regions)
Expand All @@ -17,14 +18,15 @@ az feature register --name AllowNfsFileShares --namespace Microsoft.Storage
az feature list -o table --query "[?contains(name, 'Microsoft.Storage/AllowNfsFileShares')].{Name:name,State:properties.state}"
az provider register --namespace Microsoft.Storage
```
- Create a `Premium_LRS` Azure storage account with following configurations to support NFS share
- [Optional] Create a `Premium_LRS` Azure storage account with following configurations to support NFS share
- account kind: `FileStorage`
- secure transfer required(enable HTTPS traffic only): `false`
- select virtual network of agent nodes in `Firewalls and virtual networks`
- specify `storageAccount` in below storage class `parameters`

#### How to use NFS feature
- Create an Azure File storage class
> specify `storageAccount` and `protocol: nfs` in storage class `parameters`
> specify `protocol: nfs` in storage class `parameters`
> </br>for more details, refer to [driver parameters](../../../docs/driver-parameters.md)
```yaml
apiVersion: storage.k8s.io/v1
Expand All @@ -33,9 +35,7 @@ metadata:
name: azurefile-csi-nfs
provisioner: file.csi.azure.com
parameters:
resourceGroup: EXISTING_RESOURCE_GROUP_NAME # optional, only set this when storage account is not in the same resource group as agent node
storageAccount: EXISTING_STORAGE_ACCOUNT_NAME
protocol: nfs # use "fsType: nfs" in v0.8.0
protocol: nfs
```
run following commands to create a storage class:
Expand Down
6 changes: 3 additions & 3 deletions deploy/example/nfs/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ spec:
"kubernetes.io/os": linux
containers:
- name: statefulset-azurefile
image: mcr.microsoft.com/oss/nginx/nginx:1.17.3-alpine
image: mcr.microsoft.com/oss/nginx/nginx:1.19.5
command:
- "/bin/sh"
- "/bin/bash"
- "-c"
- while true; do echo $(date) >> /mnt/azurefile/outfile; sleep 1; done
- set -euo pipefail; while true; do echo $(date) >> /mnt/azurefile/outfile; sleep 1; done
volumeMounts:
- name: persistent-storage
mountPath: /mnt/azurefile
Expand Down
10 changes: 5 additions & 5 deletions deploy/example/nginx-pod-azurefile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ spec:
nodeSelector:
"kubernetes.io/os": linux
containers:
- image: mcr.microsoft.com/oss/nginx/nginx:1.17.3-alpine
- image: mcr.microsoft.com/oss/nginx/nginx:1.19.5
name: nginx-azurefile
command:
- "/bin/sh"
- "/bin/bash"
- "-c"
- while true; do echo $(date) >> /mnt/azurefile/outfile; sleep 1; done
- set -euo pipefail; while true; do echo $(date) >> /mnt/azurefile/outfile; sleep 1; done
volumeMounts:
- name: azurefile01
- name: persistent-storage
mountPath: "/mnt/azurefile"
volumes:
- name: azurefile01
- name: persistent-storage
persistentVolumeClaim:
claimName: pvc-azurefile
6 changes: 3 additions & 3 deletions deploy/example/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ spec:
"kubernetes.io/os": linux
containers:
- name: statefulset-azurefile
image: mcr.microsoft.com/oss/nginx/nginx:1.17.3-alpine
image: mcr.microsoft.com/oss/nginx/nginx:1.19.5
command:
- "/bin/sh"
- "/bin/bash"
- "-c"
- while true; do echo $(date) >> /mnt/azurefile/outfile; sleep 1; done
- set -euo pipefail; while true; do echo $(date) >> /mnt/azurefile/outfile; sleep 1; done
volumeMounts:
- name: persistent-storage
mountPath: /mnt/azurefile
Expand Down
3 changes: 1 addition & 2 deletions deploy/example/storageclass-azurefile-nfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ metadata:
name: azurefile-csi-nfs
provisioner: file.csi.azure.com
parameters:
storageAccount: EXISTING_STORAGE_ACCOUNT_NAME
protocol: nfs # use "fsType: nfs" in v0.8.0
protocol: nfs
reclaimPolicy: Delete
volumeBindingMode: Immediate
allowVolumeExpansion: true
4 changes: 2 additions & 2 deletions deploy/example/windows/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# CSI Driver on Windows

## Feature Status: Alpha
CSI on Windows support is an alpha feature since Kubernetes v1.18, refer to [Windows-CSI-Support](https://github.com/kubernetes/enhancements/blob/master/keps/sig-windows/20190714-windows-csi-support.md) for more details.
## Feature Status: Beta
Refer to [Windows-CSI-Support](https://github.com/kubernetes/enhancements/blob/master/keps/sig-windows/20190714-windows-csi-support.md) for more details.

## Prerequisite
- Install CSI-Proxy on Windows Node
Expand Down

0 comments on commit 88297af

Please sign in to comment.