Skip to content

Commit

Permalink
doc: cut off v0.3.0 beta release
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Aug 9, 2019
1 parent 2bbef42 commit 931aa3a
Show file tree
Hide file tree
Showing 9 changed files with 494 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,22 @@
This driver allows Kubernetes to use [azure file](https://docs.microsoft.com/en-us/azure/storage/files/storage-files-introduction) volume, csi plugin name: `file.csi.azure.com`

### Project Status
Status: Alpha
Status: Beta

### Container Images & CSI Compatibility:
|Azure File CSI Driver Version | Image | v0.3.0| v1.0.0 |
|-------------------------------|----------------------------------------------------|-------|--------|
|v0.1.0-alpha |mcr.microsoft.com/k8s/csi/azurefile-csi:v0.1.0-alpha| yes | no |
|v0.2.0-alpha |mcr.microsoft.com/k8s/csi/azurefile-csi:v0.2.0-alpha| no | yes |
|v0.3.0 |mcr.microsoft.com/k8s/csi/azurefile-csi:v0.3.0 | no | yes |
|master branch |mcr.microsoft.com/k8s/csi/azurefile-csi:latest | no | yes |

### Kubernetes Compatibility
| Azure File CSI Driver\Kubernetes Version | 1.12 | 1.13+ |
|------------------------------------------|------|-------|
| v0.1.0-alpha | yes | yes |
| v0.2.0-alpha | no | yes |
| v0.3.0 | no | yes |
| master branch | no | yes |

### Driver parameters
Expand Down
35 changes: 35 additions & 0 deletions deploy/v0.3.0/crd-csi-driver-registry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
name: csidrivers.csi.storage.k8s.io
spec:
group: csi.storage.k8s.io
names:
kind: CSIDriver
plural: csidrivers
scope: Cluster
validation:
openAPIV3Schema:
properties:
spec:
description: Specification of the CSI Driver.
properties:
attachRequired:
description:
Indicates this CSI volume driver requires an attach operation,
and that Kubernetes should call attach and wait for any attach operation
to complete before proceeding to mount.
type: boolean
podInfoOnMountVersion:
description:
Indicates this CSI volume driver requires additional pod
information (like podName, podUID, etc.) during mount operations.
type: string
version: v1alpha1
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
37 changes: 37 additions & 0 deletions deploy/v0.3.0/crd-csi-node-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
name: csinodeinfos.csi.storage.k8s.io
spec:
group: csi.storage.k8s.io
names:
kind: CSINodeInfo
plural: csinodeinfos
scope: Cluster
validation:
openAPIV3Schema:
properties:
csiDrivers:
description: List of CSI drivers running on the node and their properties.
items:
properties:
driver:
description: The CSI driver that this object refers to.
type: string
nodeID:
description: The node from the driver point of view.
type: string
topologyKeys:
description: List of keys supported by the driver.
items:
type: string
type: array
type: array
version: v1alpha1
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
109 changes: 109 additions & 0 deletions deploy/v0.3.0/csi-azurefile-controller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: csi-azurefile-controller
namespace: kube-system
spec:
replicas: 1
selector:
matchLabels:
app: csi-azurefile-controller
template:
metadata:
labels:
app: csi-azurefile-controller
spec:
serviceAccountName: csi-azurefile-controller-sa
nodeSelector:
beta.kubernetes.io/os: linux
containers:
- name: csi-provisioner
image: quay.io/k8scsi/csi-provisioner:v1.0.1
args:
- "--provisioner=file.csi.azure.com"
- "--csi-address=$(ADDRESS)"
- "--connection-timeout=15s"
env:
- name: ADDRESS
value: /csi/csi.sock
imagePullPolicy: Always
volumeMounts:
- mountPath: /csi
name: socket-dir
- name: csi-attacher
image: quay.io/k8scsi/csi-attacher:v1.0.1
args:
- --v=5
- --csi-address=$(ADDRESS)
- --timeout=120s
env:
- name: ADDRESS
value: /csi/csi.sock
imagePullPolicy: Always
volumeMounts:
- mountPath: /csi
name: socket-dir
- name: cluster-driver-registrar
image: quay.io/k8scsi/csi-cluster-driver-registrar:v1.0.1
args:
- --csi-address=$(ADDRESS)
- --driver-requires-attachment=true
- --v=5
env:
- name: ADDRESS
value: /csi/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: liveness-probe
image: quay.io/k8scsi/livenessprobe:v1.1.0
args:
- --csi-address=/csi/csi.sock
- --connection-timeout=3s
- --health-port=9702
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: azurefile
image: mcr.microsoft.com/k8s/csi/azurefile-csi:v0.3.0
args:
- "--v=5"
- "--endpoint=$(CSI_ENDPOINT)"
- "--nodeid=$(KUBE_NODE_NAME)"
ports:
- containerPort: 9702
name: healthz
protocol: TCP
livenessProbe:
failureThreshold: 5
httpGet:
path: /healthz
port: healthz
initialDelaySeconds: 30
timeoutSeconds: 10
periodSeconds: 30
env:
- name: AZURE_CREDENTIAL_FILE
value: "/etc/kubernetes/azure.json"
- name: CSI_ENDPOINT
value: unix:///csi/csi.sock
imagePullPolicy: Always
volumeMounts:
- mountPath: /csi
name: socket-dir
- mountPath: /etc/kubernetes/
name: azure-cred
- mountPath: /var/lib/waagent/ManagedIdentity-Settings
readOnly: true
name: msi
volumes:
- name: socket-dir
emptyDir: {}
- name: azure-cred
hostPath:
path: /etc/kubernetes/
type: Directory
- name: msi
hostPath:
path: /var/lib/waagent/ManagedIdentity-Settings
110 changes: 110 additions & 0 deletions deploy/v0.3.0/csi-azurefile-node.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
kind: DaemonSet
apiVersion: apps/v1
metadata:
name: csi-azurefile-node
namespace: kube-system
spec:
selector:
matchLabels:
app: csi-azurefile-node
template:
metadata:
labels:
app: csi-azurefile-node
spec:
hostNetwork: true
nodeSelector:
beta.kubernetes.io/os: linux
containers:
- name: liveness-probe
imagePullPolicy: Always
volumeMounts:
- mountPath: /csi
name: socket-dir
image: quay.io/k8scsi/livenessprobe:v1.0.2
args:
- --csi-address=/csi/csi.sock
- --connection-timeout=3s
- --health-port=9702
- name: node-driver-registrar
image: quay.io/k8scsi/csi-node-driver-registrar:v1.1.0
args:
- --csi-address=$(ADDRESS)
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
- --v=5
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "rm -rf /registration/file.csi.azure.com-reg.sock /csi/csi.sock"]
env:
- name: ADDRESS
value: /csi/csi.sock
- name: DRIVER_REG_SOCK_PATH
value: /var/lib/kubelet/plugins/file.csi.azure.com/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: registration-dir
mountPath: /registration
- name: azurefile
image: mcr.microsoft.com/k8s/csi/azurefile-csi:v0.3.0
args:
- "--v=5"
- "--endpoint=$(CSI_ENDPOINT)"
- "--nodeid=$(KUBE_NODE_NAME)"
ports:
- containerPort: 9702
name: healthz
protocol: TCP
livenessProbe:
failureThreshold: 5
httpGet:
path: /healthz
port: healthz
initialDelaySeconds: 30
timeoutSeconds: 10
periodSeconds: 30
env:
- name: AZURE_CREDENTIAL_FILE
value: "/etc/kubernetes/azure.json"
- name: CSI_ENDPOINT
value: unix:///csi/csi.sock
- name: KUBE_NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
imagePullPolicy: Always
securityContext:
privileged: true
volumeMounts:
- mountPath: /csi
name: socket-dir
- mountPath: /var/lib/kubelet/
mountPropagation: Bidirectional
name: mountpoint-dir
- mountPath: /etc/kubernetes/
name: azure-cred
- mountPath: /var/lib/waagent/ManagedIdentity-Settings
readOnly: true
name: msi
volumes:
- hostPath:
path: /var/lib/kubelet/plugins/file.csi.azure.com
type: DirectoryOrCreate
name: socket-dir
- hostPath:
path: /var/lib/kubelet/
type: DirectoryOrCreate
name: mountpoint-dir
- hostPath:
path: /var/lib/kubelet/plugins_registry/
type: DirectoryOrCreate
name: registration-dir
- hostPath:
path: /etc/kubernetes/
type: Directory
name: azure-cred
- hostPath:
path: /var/lib/waagent/ManagedIdentity-Settings
name: msi
Loading

0 comments on commit 931aa3a

Please sign in to comment.