Skip to content

Commit e833987

Browse files
committed
doc: cut v0.8.0 release
add chart file fix doc
1 parent 0e1d5bc commit e833987

33 files changed

+2834
-5
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This driver allows Kubernetes to use [Azure File](https://docs.microsoft.com/en-
1010
|Azure File CSI Driver Version | Image | 1.14+ |
1111
|-------------------------------|----------------------------------------------------|--------|
1212
|master branch |mcr.microsoft.com/k8s/csi/azurefile-csi:latest | yes |
13+
|v0.8.0 |mcr.microsoft.com/k8s/csi/azurefile-csi:v0.8.0 | yes |
1314
|v0.7.0 |mcr.microsoft.com/k8s/csi/azurefile-csi:v0.7.0 | yes |
1415
|v0.6.0 |mcr.microsoft.com/k8s/csi/azurefile-csi:v0.6.0 | yes |
1516

charts/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $ helm search repo -l azurefile-csi-driver/
2929
### Install a specific version of Helm chart
3030
Specify the version of the chart to be installed using the `--version` parameter.
3131
```console
32-
helm install azurefile-csi-driver azurefile-csi-driver/azurefile-csi-driver --namespace kube-system --version v0.6.0
32+
helm install azurefile-csi-driver azurefile-csi-driver/azurefile-csi-driver --namespace kube-system --version v0.8.0
3333
```
3434

3535
## Uninstall
8.15 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: v1
2+
appVersion: v0.8.0
3+
description: Azure File Container Storage Interface (CSI) Storage Plugin
4+
name: azurefile-csi-driver
5+
version: v0.8.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
The Azure File CSI Driver is getting deployed to your cluster.
2+
3+
To check Azure File CSI Driver pods status, please run:
4+
5+
kubectl --namespace={{ .Release.Namespace }} get pods --selector="release={{ .Release.Name }}" --watch
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{{/* vim: set filetype=mustache: */}}
2+
3+
{{/* labels for helm resources */}}
4+
{{- define "azurefile.labels" -}}
5+
labels:
6+
heritage: "{{ .Release.Service }}"
7+
release: "{{ .Release.Name }}"
8+
revision: "{{ .Release.Revision }}"
9+
chart: "{{ .Chart.Name }}"
10+
chartVersion: "{{ .Chart.Version }}"
11+
{{- end -}}

charts/v0.8.0/azurefile-csi-driver/templates/crd-csi-snapshot.yaml

+507
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
kind: Deployment
2+
apiVersion: apps/v1
3+
metadata:
4+
name: csi-azurefile-controller
5+
namespace: {{ .Release.Namespace }}
6+
{{ include "azurefile.labels" . | indent 2 }}
7+
spec:
8+
replicas: {{ .Values.controller.replicas }}
9+
selector:
10+
matchLabels:
11+
app: csi-azurefile-controller
12+
template:
13+
metadata:
14+
{{ include "azurefile.labels" . | indent 6 }}
15+
app: csi-azurefile-controller
16+
spec:
17+
hostNetwork: true # only required for MSI enabled cluster
18+
serviceAccountName: csi-azurefile-controller-sa
19+
nodeSelector:
20+
kubernetes.io/os: linux
21+
priorityClassName: system-cluster-critical
22+
tolerations:
23+
- key: "node-role.kubernetes.io/master"
24+
operator: "Equal"
25+
value: "true"
26+
effect: "NoSchedule"
27+
containers:
28+
- name: csi-provisioner
29+
image: "{{ .Values.image.csiProvisioner.repository }}:{{ .Values.image.csiProvisioner.tag }}"
30+
args:
31+
- "-v=5"
32+
- "--csi-address=$(ADDRESS)"
33+
- "--enable-leader-election"
34+
- "--leader-election-type=leases"
35+
env:
36+
- name: ADDRESS
37+
value: /csi/csi.sock
38+
imagePullPolicy: {{ .Values.image.csiProvisioner.pullPolicy }}
39+
volumeMounts:
40+
- mountPath: /csi
41+
name: socket-dir
42+
resources:
43+
limits:
44+
cpu: 1
45+
memory: 1Gi
46+
requests:
47+
cpu: 10m
48+
memory: 20Mi
49+
- name: csi-attacher
50+
image: "{{ .Values.image.csiAttacher.repository }}:{{ .Values.image.csiAttacher.tag }}"
51+
args:
52+
- "-v=5"
53+
- "-csi-address=$(ADDRESS)"
54+
- "-timeout=120s"
55+
- "-leader-election"
56+
env:
57+
- name: ADDRESS
58+
value: /csi/csi.sock
59+
imagePullPolicy: {{ .Values.image.csiAttacher.pullPolicy }}
60+
volumeMounts:
61+
- mountPath: /csi
62+
name: socket-dir
63+
resources:
64+
limits:
65+
cpu: 1
66+
memory: 1Gi
67+
requests:
68+
cpu: 10m
69+
memory: 20Mi
70+
{{- if .Values.snapshot.enabled}}
71+
- name: csi-snapshotter
72+
image: "{{ .Values.snapshot.image.csiSnapshotter.repository }}:{{ .Values.snapshot.image.csiSnapshotter.tag }}"
73+
args:
74+
- "-csi-address=$(ADDRESS)"
75+
- "-leader-election"
76+
- "-v=5"
77+
env:
78+
- name: ADDRESS
79+
value: /csi/csi.sock
80+
volumeMounts:
81+
- name: socket-dir
82+
mountPath: /csi
83+
resources:
84+
limits:
85+
cpu: 1
86+
memory: 1Gi
87+
requests:
88+
cpu: 10m
89+
memory: 20Mi
90+
{{- end}}
91+
- name: csi-resizer
92+
image: "{{ .Values.image.csiResizer.repository }}:{{ .Values.image.csiResizer.tag }}"
93+
args:
94+
- "-csi-address=$(ADDRESS)"
95+
- "-v=5"
96+
- "-leader-election"
97+
env:
98+
- name: ADDRESS
99+
value: /csi/csi.sock
100+
imagePullPolicy: {{ .Values.image.csiResizer.pullPolicy }}
101+
volumeMounts:
102+
- name: socket-dir
103+
mountPath: /csi
104+
resources:
105+
limits:
106+
cpu: 1
107+
memory: 1Gi
108+
requests:
109+
cpu: 10m
110+
memory: 20Mi
111+
- name: liveness-probe
112+
image: "{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"
113+
args:
114+
- --csi-address=/csi/csi.sock
115+
- --connection-timeout=3s
116+
- --health-port=29612
117+
- --v=5
118+
imagePullPolicy: {{ .Values.image.livenessProbe.pullPolicy }}
119+
volumeMounts:
120+
- name: socket-dir
121+
mountPath: /csi
122+
resources:
123+
limits:
124+
cpu: 1
125+
memory: 1Gi
126+
requests:
127+
cpu: 10m
128+
memory: 20Mi
129+
- name: azurefile
130+
image: "{{ .Values.image.azurefile.repository }}:{{ .Values.image.azurefile.tag }}"
131+
args:
132+
- "--v=5"
133+
- "--endpoint=$(CSI_ENDPOINT)"
134+
ports:
135+
- containerPort: 29612
136+
name: healthz
137+
protocol: TCP
138+
- containerPort: 29614
139+
name: metrics
140+
protocol: TCP
141+
livenessProbe:
142+
failureThreshold: 5
143+
httpGet:
144+
path: /healthz
145+
port: healthz
146+
initialDelaySeconds: 30
147+
timeoutSeconds: 10
148+
periodSeconds: 30
149+
env:
150+
- name: AZURE_CREDENTIAL_FILE
151+
valueFrom:
152+
configMapKeyRef:
153+
name: azure-cred-file
154+
key: path
155+
optional: true
156+
- name: CSI_ENDPOINT
157+
value: unix:///csi/csi.sock
158+
imagePullPolicy: {{ .Values.image.azurefile.pullPolicy }}
159+
volumeMounts:
160+
- mountPath: /csi
161+
name: socket-dir
162+
- mountPath: /etc/kubernetes/
163+
name: azure-cred
164+
- mountPath: /var/lib/waagent/ManagedIdentity-Settings
165+
readOnly: true
166+
name: msi
167+
resources:
168+
limits:
169+
cpu: 1
170+
memory: 1Gi
171+
requests:
172+
cpu: 10m
173+
memory: 20Mi
174+
volumes:
175+
- name: socket-dir
176+
emptyDir: {}
177+
- name: azure-cred
178+
hostPath:
179+
path: /etc/kubernetes/
180+
type: Directory
181+
- name: msi
182+
hostPath:
183+
path: /var/lib/waagent/ManagedIdentity-Settings
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
apiVersion: storage.k8s.io/v1beta1
3+
kind: CSIDriver
4+
metadata:
5+
name: file.csi.azure.com
6+
spec:
7+
attachRequired: true
8+
podInfoOnMount: true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
{{- if .Values.windows.enabled}}
2+
kind: DaemonSet
3+
apiVersion: apps/v1
4+
metadata:
5+
name: csi-azurefile-node
6+
namespace: {{ .Release.Namespace }}
7+
{{ include "azurefile.labels" . | indent 2 }}
8+
spec:
9+
selector:
10+
matchLabels:
11+
app: csi-azurefile-node
12+
template:
13+
metadata:
14+
{{ include "azurefile.labels" . | indent 6 }}
15+
app: csi-azurefile-node
16+
spec:
17+
serviceAccountName: csi-azurefile-node-sa
18+
nodeSelector:
19+
kubernetes.io/os: windows
20+
priorityClassName: system-node-critical
21+
tolerations:
22+
- operator: "Exists"
23+
containers:
24+
- name: liveness-probe
25+
volumeMounts:
26+
- mountPath: C:\csi
27+
name: plugin-dir
28+
image: "{{ .Values.windows.image.livenessProbe.repository }}:{{ .Values.windows.image.livenessProbe.tag }}"
29+
args:
30+
- "--csi-address=$(CSI_ENDPOINT)"
31+
- "--probe-timeout=3s"
32+
- "--health-port=29613"
33+
- "--v=5"
34+
env:
35+
- name: CSI_ENDPOINT
36+
value: unix://C:\\csi\\csi.sock
37+
imagePullPolicy: {{ .Values.windows.image.livenessProbe.pullPolicy }}
38+
resources:
39+
limits:
40+
cpu: 2
41+
memory: 2Gi
42+
requests:
43+
cpu: 10m
44+
memory: 20Mi
45+
- name: node-driver-registrar
46+
image: "{{ .Values.windows.image.nodeDriverRegistrar.repository }}:{{ .Values.windows.image.nodeDriverRegistrar.tag }}"
47+
args:
48+
- "--csi-address=$(CSI_ENDPOINT)"
49+
- "--kubelet-registration-path=C:\\var\\lib\\kubelet\\plugins\\file.csi.azure.com\\csi.sock"
50+
- "--v=5"
51+
env:
52+
- name: CSI_ENDPOINT
53+
value: unix://C:\\csi\\csi.sock
54+
- name: KUBE_NODE_NAME
55+
valueFrom:
56+
fieldRef:
57+
fieldPath: spec.nodeName
58+
imagePullPolicy: {{ .Values.windows.image.nodeDriverRegistrar.pullPolicy }}
59+
volumeMounts:
60+
- name: kubelet-dir
61+
mountPath: "C:\\var\\lib\\kubelet"
62+
- name: plugin-dir
63+
mountPath: C:\csi
64+
- name: registration-dir
65+
mountPath: C:\registration
66+
resources:
67+
limits:
68+
cpu: 2
69+
memory: 2Gi
70+
requests:
71+
cpu: 10m
72+
memory: 20Mi
73+
- name: azurefile
74+
image: "{{ .Values.image.azurefile.repository }}:{{ .Values.image.azurefile.tag }}"
75+
args:
76+
- "--v=5"
77+
- "--endpoint=$(CSI_ENDPOINT)"
78+
- "--nodeid=$(KUBE_NODE_NAME)"
79+
ports:
80+
- containerPort: 29613
81+
name: healthz
82+
protocol: TCP
83+
livenessProbe:
84+
failureThreshold: 5
85+
httpGet:
86+
path: /healthz
87+
port: healthz
88+
initialDelaySeconds: 30
89+
timeoutSeconds: 10
90+
periodSeconds: 30
91+
env:
92+
- name: AZURE_CREDENTIAL_FILE
93+
valueFrom:
94+
configMapKeyRef:
95+
name: azure-cred-file
96+
key: path-windows
97+
optional: true
98+
- name: CSI_ENDPOINT
99+
value: unix://C:\\csi\\csi.sock
100+
- name: KUBE_NODE_NAME
101+
valueFrom:
102+
fieldRef:
103+
apiVersion: v1
104+
fieldPath: spec.nodeName
105+
imagePullPolicy: {{ .Values.image.pullPolicy }}
106+
securityContext:
107+
privileged: true
108+
volumeMounts:
109+
- name: kubelet-dir
110+
mountPath: "C:\\var\\lib\\kubelet"
111+
- name: plugin-dir
112+
mountPath: C:\csi
113+
- name: azure-config
114+
mountPath: C:\k
115+
- name: csi-proxy-fs-pipe
116+
mountPath: \\.\pipe\csi-proxy-filesystem-v1alpha1
117+
- name: csi-proxy-smb-pipe
118+
mountPath: \\.\pipe\csi-proxy-smb-v1alpha1
119+
resources:
120+
limits:
121+
cpu: 2
122+
memory: 2Gi
123+
requests:
124+
cpu: 10m
125+
memory: 20Mi
126+
volumes:
127+
- name: csi-proxy-fs-pipe
128+
hostPath:
129+
path: \\.\pipe\csi-proxy-filesystem-v1alpha1
130+
type: ""
131+
- name: csi-proxy-smb-pipe
132+
hostPath:
133+
path: \\.\pipe\csi-proxy-smb-v1alpha1
134+
type: ""
135+
- name: registration-dir
136+
hostPath:
137+
path: C:\var\lib\kubelet\plugins_registry\
138+
type: Directory
139+
- name: kubelet-dir
140+
hostPath:
141+
path: C:\var\lib\kubelet\
142+
type: Directory
143+
- name: plugin-dir
144+
hostPath:
145+
path: C:\var\lib\kubelet\plugins\file.csi.azure.com\
146+
type: DirectoryOrCreate
147+
- name: azure-config
148+
hostPath:
149+
path: C:\k
150+
type: Directory
151+
{{- end -}}

0 commit comments

Comments
 (0)