Skip to content

Commit af5eb36

Browse files
committed
doc: cut v0.5.0 release
1 parent 4f01661 commit af5eb36

23 files changed

+999
-13
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ This driver allows Kubernetes to use [SMB](https://wiki.wireshark.org/SMB) CSI v
99
### Project status: beta
1010

1111
### Container Images & Kubernetes Compatibility:
12-
|SMB CSI Driver Version | Image | 1.14+ |
12+
|SMB CSI Driver Version | Image | 1.15+ |
1313
|------------------------|----------------------------------------------|--------|
1414
|master branch |mcr.microsoft.com/k8s/csi/smb-csi:latest | yes |
15+
|v0.5.0 |mcr.microsoft.com/k8s/csi/smb-csi:v0.5.0 | yes |
1516
|v0.4.0 |mcr.microsoft.com/k8s/csi/smb-csi:v0.4.0 | yes |
1617
|v0.3.0 |mcr.microsoft.com/k8s/csi/smb-csi:v0.3.0 | yes |
1718

charts/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $ helm search repo -l csi-driver-smb/
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 --name csi-driver-smb csi-driver-smb/csi-driver-smb --namespace kube-system --version v0.4.0
32+
helm install --name csi-driver-smb csi-driver-smb/csi-driver-smb --namespace kube-system --version v0.5.0
3333
```
3434

3535
## Uninstall

charts/index.yaml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
apiVersion: v1
22
entries:
33
csi-driver-smb:
4+
- apiVersion: v1
5+
appVersion: v0.5.0
6+
created: "2020-11-14T09:10:37.494725989Z"
7+
description: SMB CSI Driver for Kubernetes
8+
digest: b400ef563745dcaf4a819a05b1e8a11d9442ae1ddf46da70542d5c87cd4cd9a1
9+
name: csi-driver-smb
10+
urls:
11+
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/v0.5.0/csi-driver-smb-v0.5.0.tgz
12+
version: v0.5.0
413
- apiVersion: v1
514
appVersion: v0.4.0
6-
created: "2020-10-06T02:45:33.846857672Z"
15+
created: "2020-11-14T09:10:37.49240927Z"
716
description: SMB CSI Driver for Kubernetes
817
digest: fb6d581ba5d4d1d78ca468f6daa4a24c47bb147b74d005d3c394521b4e534a3e
918
name: csi-driver-smb
@@ -12,7 +21,7 @@ entries:
1221
version: v0.4.0
1322
- apiVersion: v1
1423
appVersion: v0.3.0
15-
created: "2020-10-06T02:45:33.845894964Z"
24+
created: "2020-11-14T09:10:37.491337861Z"
1625
description: SMB CSI Driver for Kubernetes
1726
digest: ee9e58db6d4a95491e2012c6607126bbff827b9c439e90e9a9798d2a73b0cb22
1827
name: csi-driver-smb
@@ -21,7 +30,7 @@ entries:
2130
version: v0.3.0
2231
- apiVersion: v1
2332
appVersion: v0.2.0
24-
created: "2020-10-06T02:45:33.845424061Z"
33+
created: "2020-11-14T09:10:37.490280552Z"
2534
description: SMB CSI Driver for Kubernetes
2635
digest: bc0aca4acd74b6c521d85d6d75e1dab22c06dcc9a2e0430abc203a2d5006403d
2736
name: csi-driver-smb
@@ -30,20 +39,29 @@ entries:
3039
version: v0.2.0
3140
- apiVersion: v1
3241
appVersion: latest
33-
created: "2020-10-06T02:45:33.846331468Z"
42+
created: "2020-11-14T09:10:37.488677839Z"
3443
description: SMB CSI Driver for Kubernetes
3544
digest: 726616076e41190988103004a71710847e95deee700f296730f2c264df269d06
3645
name: csi-driver-smb
3746
urls:
38-
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/v0.4.0/csi-driver-smb-latest.tgz
47+
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/latest/csi-driver-smb-latest.tgz
3948
version: latest
4049
- apiVersion: v1
4150
appVersion: latest
42-
created: "2020-10-06T02:45:33.844857657Z"
51+
created: "2020-11-14T09:10:37.494161984Z"
4352
description: SMB CSI Driver for Kubernetes
4453
digest: 726616076e41190988103004a71710847e95deee700f296730f2c264df269d06
4554
name: csi-driver-smb
4655
urls:
47-
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/latest/csi-driver-smb-latest.tgz
56+
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/v0.5.0/csi-driver-smb-latest.tgz
57+
version: latest
58+
- apiVersion: v1
59+
appVersion: latest
60+
created: "2020-11-14T09:10:37.491875666Z"
61+
description: SMB CSI Driver for Kubernetes
62+
digest: 726616076e41190988103004a71710847e95deee700f296730f2c264df269d06
63+
name: csi-driver-smb
64+
urls:
65+
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/v0.4.0/csi-driver-smb-latest.tgz
4866
version: latest
49-
generated: "2020-10-06T02:45:33.842420338Z"
67+
generated: "2020-11-14T09:10:37.487823232Z"
3.01 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: v1
2+
appVersion: v0.5.0
3+
description: SMB CSI Driver for Kubernetes
4+
name: csi-driver-smb
5+
version: v0.5.0
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
The CSI SMB Driver is getting deployed to your cluster.
2+
3+
To check CSI SMB Driver pods status, please run:
4+
5+
kubectl --namespace={{ .Release.Namespace }} get pods --selector="release={{ .Release.Name }}" --watch
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{{/* vim: set filetype=mustache: */}}
2+
3+
{{/* labels for helm resources */}}
4+
{{- define "smb.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 -}}
12+
13+
{{/* pull secrets for containers */}}
14+
{{- define "smb.pullSecrets" -}}
15+
{{- if .Values.imagePullSecrets }}
16+
imagePullSecrets:
17+
{{- range .Values.imagePullSecrets }}
18+
- name: {{ . }}
19+
{{- end }}
20+
{{- end }}
21+
{{- end -}}
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
---
2+
kind: Deployment
3+
apiVersion: apps/v1
4+
metadata:
5+
name: csi-smb-controller
6+
namespace: {{ .Release.Namespace }}
7+
{{ include "smb.labels" . | indent 2 }}
8+
spec:
9+
replicas: {{ .Values.controller.replicas }}
10+
selector:
11+
matchLabels:
12+
app: csi-smb-controller
13+
template:
14+
metadata:
15+
{{ include "smb.labels" . | indent 6 }}
16+
app: csi-smb-controller
17+
spec:
18+
serviceAccountName: csi-smb-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+
{{- include "smb.pullSecrets" . | indent 6 }}
28+
containers:
29+
- name: csi-provisioner
30+
image: "{{ .Values.image.csiProvisioner.repository }}:{{ .Values.image.csiProvisioner.tag }}"
31+
args:
32+
- "-v=5"
33+
- "--csi-address=$(ADDRESS)"
34+
- "--leader-election"
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: 100m
45+
memory: 100Mi
46+
requests:
47+
cpu: 10m
48+
memory: 20Mi
49+
- name: liveness-probe
50+
image: "{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"
51+
args:
52+
- --csi-address=/csi/csi.sock
53+
- --probe-timeout=3s
54+
- --health-port=29642
55+
- --v=5
56+
imagePullPolicy: {{ .Values.image.livenessProbe.pullPolicy }}
57+
volumeMounts:
58+
- name: socket-dir
59+
mountPath: /csi
60+
resources:
61+
limits:
62+
cpu: 100m
63+
memory: 100Mi
64+
requests:
65+
cpu: 10m
66+
memory: 20Mi
67+
- name: smb
68+
image: "{{ .Values.image.smb.repository }}:{{ .Values.image.smb.tag }}"
69+
imagePullPolicy: {{ .Values.image.smb.pullPolicy }}
70+
args:
71+
- "--v=5"
72+
- "--endpoint=$(CSI_ENDPOINT)"
73+
- "--metrics-address=0.0.0.0:{{ .Values.controller.metricsPort }}"
74+
ports:
75+
- containerPort: 29642
76+
name: healthz
77+
protocol: TCP
78+
- containerPort: {{ .Values.controller.metricsPort }}
79+
name: metrics
80+
protocol: TCP
81+
livenessProbe:
82+
failureThreshold: 5
83+
httpGet:
84+
path: /healthz
85+
port: healthz
86+
initialDelaySeconds: 30
87+
timeoutSeconds: 10
88+
periodSeconds: 30
89+
env:
90+
- name: CSI_ENDPOINT
91+
value: unix:///csi/csi.sock
92+
volumeMounts:
93+
- mountPath: /csi
94+
name: socket-dir
95+
resources:
96+
limits:
97+
cpu: 200m
98+
memory: 200Mi
99+
requests:
100+
cpu: 10m
101+
memory: 20Mi
102+
volumes:
103+
- name: socket-dir
104+
emptyDir: {}
Lines changed: 8 additions & 0 deletions
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: smb.csi.k8s.io
6+
spec:
7+
attachRequired: false
8+
podInfoOnMount: true
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
{{- if .Values.windows.enabled}}
2+
kind: DaemonSet
3+
apiVersion: apps/v1
4+
metadata:
5+
name: csi-smb-node-win
6+
namespace: {{ .Release.Namespace }}
7+
{{ include "smb.labels" . | indent 2 }}
8+
spec:
9+
selector:
10+
matchLabels:
11+
app: csi-smb-node-win
12+
template:
13+
metadata:
14+
{{ include "smb.labels" . | indent 6 }}
15+
app: csi-smb-node-win
16+
spec:
17+
nodeSelector:
18+
kubernetes.io/os: windows
19+
priorityClassName: system-node-critical
20+
{{- include "smb.pullSecrets" . | indent 6 }}
21+
containers:
22+
- name: liveness-probe
23+
volumeMounts:
24+
- mountPath: C:\csi
25+
name: plugin-dir
26+
image: "{{ .Values.windows.image.livenessProbe.repository }}:{{ .Values.windows.image.livenessProbe.tag }}"
27+
args:
28+
- --csi-address=$(CSI_ENDPOINT)
29+
- --probe-timeout=3s
30+
- --health-port=29643
31+
- --v=5
32+
env:
33+
- name: CSI_ENDPOINT
34+
value: unix://C:\\csi\\csi.sock
35+
imagePullPolicy: {{ .Values.windows.image.livenessProbe.pullPolicy }}
36+
resources:
37+
limits:
38+
cpu: 200m
39+
memory: 200Mi
40+
requests:
41+
cpu: 10m
42+
memory: 20Mi
43+
- name: node-driver-registrar
44+
image: "{{ .Values.windows.image.nodeDriverRegistrar.repository }}:{{ .Values.windows.image.nodeDriverRegistrar.tag }}"
45+
args:
46+
- --v=5
47+
- --csi-address=$(CSI_ENDPOINT)
48+
- --kubelet-registration-path=C:\\var\\lib\\kubelet\\plugins\\smb.csi.k8s.io\\csi.sock
49+
env:
50+
- name: CSI_ENDPOINT
51+
value: unix://C:\\csi\\csi.sock
52+
- name: KUBE_NODE_NAME
53+
valueFrom:
54+
fieldRef:
55+
fieldPath: spec.nodeName
56+
imagePullPolicy: {{ .Values.windows.image.nodeDriverRegistrar.pullPolicy }}
57+
volumeMounts:
58+
- name: kubelet-dir
59+
mountPath: "C:\\var\\lib\\kubelet"
60+
- name: plugin-dir
61+
mountPath: C:\csi
62+
- name: registration-dir
63+
mountPath: C:\registration
64+
resources:
65+
limits:
66+
cpu: 200m
67+
memory: 200Mi
68+
requests:
69+
cpu: 10m
70+
memory: 20Mi
71+
- name: smb
72+
image: "{{ .Values.image.smb.repository }}:{{ .Values.image.smb.tag }}"
73+
imagePullPolicy: {{ .Values.image.smb.pullPolicy }}
74+
args:
75+
- --v=5
76+
- --endpoint=$(CSI_ENDPOINT)
77+
- --nodeid=$(KUBE_NODE_NAME)
78+
- "--metrics-address=0.0.0.0:{{ .Values.node.metricsPort }}"
79+
ports:
80+
- containerPort: 29643
81+
name: healthz
82+
protocol: TCP
83+
- containerPort: {{ .Values.node.metricsPort }}
84+
name: metrics
85+
protocol: TCP
86+
livenessProbe:
87+
failureThreshold: 5
88+
httpGet:
89+
path: /healthz
90+
port: healthz
91+
initialDelaySeconds: 30
92+
timeoutSeconds: 10
93+
periodSeconds: 30
94+
env:
95+
- name: CSI_ENDPOINT
96+
value: unix://C:\\csi\\csi.sock
97+
- name: KUBE_NODE_NAME
98+
valueFrom:
99+
fieldRef:
100+
apiVersion: v1
101+
fieldPath: spec.nodeName
102+
securityContext:
103+
privileged: true
104+
volumeMounts:
105+
- name: kubelet-dir
106+
mountPath: "C:\\var\\lib\\kubelet"
107+
- name: plugin-dir
108+
mountPath: C:\csi
109+
- name: csi-proxy-fs-pipe
110+
mountPath: \\.\pipe\csi-proxy-filesystem-v1alpha1
111+
- name: csi-proxy-smb-pipe
112+
mountPath: \\.\pipe\csi-proxy-smb-v1alpha1
113+
resources:
114+
limits:
115+
cpu: 400m
116+
memory: 400Mi
117+
requests:
118+
cpu: 10m
119+
memory: 20Mi
120+
volumes:
121+
- name: csi-proxy-fs-pipe
122+
hostPath:
123+
path: \\.\pipe\csi-proxy-filesystem-v1alpha1
124+
type: ""
125+
- name: csi-proxy-smb-pipe
126+
hostPath:
127+
path: \\.\pipe\csi-proxy-smb-v1alpha1
128+
type: ""
129+
- name: registration-dir
130+
hostPath:
131+
path: {{ .Values.kubelet.windowsPath }}\plugins_registry\
132+
type: Directory
133+
- name: kubelet-dir
134+
hostPath:
135+
path: {{ .Values.kubelet.windowsPath }}\
136+
type: Directory
137+
- name: plugin-dir
138+
hostPath:
139+
path: {{ .Values.kubelet.windowsPath }}\plugins\smb.csi.k8s.io\
140+
type: DirectoryOrCreate
141+
{{- end -}}

0 commit comments

Comments
 (0)