Skip to content

Commit 5869587

Browse files
committed
doc: cut v1.1.0 release
1 parent 6f96018 commit 5869587

23 files changed

+1097
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ This driver allows Kubernetes to use [SMB](https://wiki.wireshark.org/SMB) CSI v
1111
|Driver Version | Image | supported k8s version | supported [Windows csi-proxy](https://github.com/kubernetes-csi/csi-proxy) version |
1212
|---------------|------------------------------------------|-----------------------|-------------------------------------|
1313
|master branch |mcr.microsoft.com/k8s/csi/smb-csi:latest | 1.18+ | v0.2.2+ |
14+
|v1.1.0 |mcr.microsoft.com/k8s/csi/smb-csi:v1.1.0 | 1.18+ | v0.2.2+ |
1415
|v1.0.0 |mcr.microsoft.com/k8s/csi/smb-csi:v1.0.0 | 1.17+ | v0.2.2+ |
1516
|v0.6.0 |mcr.microsoft.com/k8s/csi/smb-csi:v0.6.0 | 1.15+ | v0.2.0+ |
16-
|v0.5.0 |mcr.microsoft.com/k8s/csi/smb-csi:v0.5.0 | 1.15+ | v0.2.0+ |
1717

1818
### Driver parameters
1919
Please refer to [`smb.csi.k8s.io` driver parameters](./docs/driver-parameters.md)

charts/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ helm install csi-driver-smb csi-driver-smb/csi-driver-smb --namespace kube-syste
1212
### install a specific version
1313
```console
1414
helm repo add csi-driver-smb https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts
15-
helm install csi-driver-smb csi-driver-smb/csi-driver-smb --namespace kube-system --version v1.0.0
15+
helm install csi-driver-smb csi-driver-smb/csi-driver-smb --namespace kube-system --version v1.1.0
1616
```
1717

1818
### search for all available chart versions

charts/index.yaml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,25 @@ entries:
33
csi-driver-smb:
44
- apiVersion: v1
55
appVersion: latest
6-
created: "2021-06-03T04:03:08.353595922Z"
6+
created: "2021-06-26T14:38:27.409591189Z"
77
description: SMB CSI Driver for Kubernetes
8-
digest: b29951fe3a28c11c8b1eff1c143f77f06f363421b0babea6bfb743139a0d88ee
8+
digest: bf8ace92252c4529f79be9053aacb4dc717034d83a3e6a7c2c24efdb8af44d31
99
name: csi-driver-smb
1010
urls:
1111
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/latest/csi-driver-smb-v1.1.0.tgz
1212
version: v1.1.0
13+
- apiVersion: v1
14+
appVersion: v1.1.0
15+
created: "2021-06-26T14:38:27.416809044Z"
16+
description: SMB CSI Driver for Kubernetes
17+
digest: 19bdba4a6b473bf3d7494cea64146fc1874c8440e3adf5262d822659cd276837
18+
name: csi-driver-smb
19+
urls:
20+
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/v1.1.0/csi-driver-smb-v1.1.0.tgz
21+
version: v1.1.0
1322
- apiVersion: v1
1423
appVersion: v1.0.0
15-
created: "2021-06-03T04:03:08.361906984Z"
24+
created: "2021-06-26T14:38:27.414022723Z"
1625
description: SMB CSI Driver for Kubernetes
1726
digest: 2360e6e088403818944cc057ad3bf0f99ae295a421d4637f1d3c7cbe3c4ab27f
1827
name: csi-driver-smb
@@ -21,7 +30,7 @@ entries:
2130
version: v1.0.0
2231
- apiVersion: v1
2332
appVersion: v0.6.0
24-
created: "2021-06-03T04:03:08.360549374Z"
33+
created: "2021-06-26T14:38:27.413029615Z"
2534
description: SMB CSI Driver for Kubernetes
2635
digest: 5ad0b7b9f84fa313387a9bbfb0ed59cff70b10633cedf81e7b77af936ff2806e
2736
name: csi-driver-smb
@@ -30,7 +39,7 @@ entries:
3039
version: v0.6.0
3140
- apiVersion: v1
3241
appVersion: v0.5.0
33-
created: "2021-06-03T04:03:08.36001517Z"
42+
created: "2021-06-26T14:38:27.412433111Z"
3443
description: SMB CSI Driver for Kubernetes
3544
digest: b400ef563745dcaf4a819a05b1e8a11d9442ae1ddf46da70542d5c87cd4cd9a1
3645
name: csi-driver-smb
@@ -39,7 +48,7 @@ entries:
3948
version: v0.5.0
4049
- apiVersion: v1
4150
appVersion: v0.4.0
42-
created: "2021-06-03T04:03:08.359036863Z"
51+
created: "2021-06-26T14:38:27.411796206Z"
4352
description: SMB CSI Driver for Kubernetes
4453
digest: fb6d581ba5d4d1d78ca468f6daa4a24c47bb147b74d005d3c394521b4e534a3e
4554
name: csi-driver-smb
@@ -48,7 +57,7 @@ entries:
4857
version: v0.4.0
4958
- apiVersion: v1
5059
appVersion: v0.3.0
51-
created: "2021-06-03T04:03:08.358154056Z"
60+
created: "2021-06-26T14:38:27.4111036Z"
5261
description: SMB CSI Driver for Kubernetes
5362
digest: ee9e58db6d4a95491e2012c6607126bbff827b9c439e90e9a9798d2a73b0cb22
5463
name: csi-driver-smb
@@ -57,11 +66,11 @@ entries:
5766
version: v0.3.0
5867
- apiVersion: v1
5968
appVersion: v0.2.0
60-
created: "2021-06-03T04:03:08.356248642Z"
69+
created: "2021-06-26T14:38:27.410503596Z"
6170
description: SMB CSI Driver for Kubernetes
6271
digest: 8d8667106306d78dea9f63e5a3e8ee7ad2b60f86bd625f5968e37ca6a0cad317
6372
name: csi-driver-smb
6473
urls:
6574
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/v0.2.0/csi-driver-smb-v0.2.0.tgz
6675
version: v0.2.0
67-
generated: "2021-06-03T04:03:08.35199461Z"
76+
generated: "2021-06-26T14:38:27.408663182Z"
3.64 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: v1.1.0
3+
description: SMB CSI Driver for Kubernetes
4+
name: csi-driver-smb
5+
version: v1.1.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: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{{/* vim: set filetype=mustache: */}}
2+
3+
{{/* Expand the name of the chart.*/}}
4+
{{- define "smb.name" -}}
5+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
6+
{{- end -}}
7+
8+
{{/* labels for helm resources */}}
9+
{{- define "smb.labels" -}}
10+
labels:
11+
app.kubernetes.io/instance: "{{ .Release.Name }}"
12+
app.kubernetes.io/managed-by: "{{ .Release.Service }}"
13+
app.kubernetes.io/name: "{{ template "smb.name" . }}"
14+
app.kubernetes.io/version: "{{ .Chart.AppVersion }}"
15+
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
16+
{{- end -}}
17+
18+
{{/* pull secrets for containers */}}
19+
{{- define "smb.pullSecrets" -}}
20+
{{- if .Values.imagePullSecrets }}
21+
imagePullSecrets:
22+
{{- range .Values.imagePullSecrets }}
23+
- name: {{ . }}
24+
{{- end }}
25+
{{- end }}
26+
{{- end -}}
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
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+
{{- if .Values.podLabels }}
18+
{{- toYaml .Values.podLabels | nindent 8 }}
19+
{{- end }}
20+
{{- if .Values.podAnnotations }}
21+
annotations:
22+
{{ toYaml .Values.podAnnotations | indent 8 }}
23+
{{- end }}
24+
spec:
25+
{{- with .Values.controller.affinity }}
26+
affinity:
27+
{{ toYaml . | indent 8 }}
28+
{{- end }}
29+
dnsPolicy: ClusterFirstWithHostNet
30+
serviceAccountName: csi-smb-controller-sa
31+
nodeSelector:
32+
{{- with .Values.controller.nodeSelector }}
33+
{{ toYaml . | indent 8 }}
34+
{{- end }}
35+
kubernetes.io/os: linux
36+
{{- if .Values.controller.runOnMaster}}
37+
kubernetes.io/role: master
38+
{{- end}}
39+
priorityClassName: system-cluster-critical
40+
{{- with .Values.controller.tolerations }}
41+
tolerations:
42+
{{ toYaml . | indent 8 }}
43+
{{- end }}
44+
{{- include "smb.pullSecrets" . | indent 6 }}
45+
containers:
46+
- name: csi-provisioner
47+
image: "{{ .Values.image.csiProvisioner.repository }}:{{ .Values.image.csiProvisioner.tag }}"
48+
args:
49+
- "-v=2"
50+
- "--csi-address=$(ADDRESS)"
51+
- "--leader-election"
52+
env:
53+
- name: ADDRESS
54+
value: /csi/csi.sock
55+
imagePullPolicy: {{ .Values.image.csiProvisioner.pullPolicy }}
56+
volumeMounts:
57+
- mountPath: /csi
58+
name: socket-dir
59+
resources: {{- toYaml .Values.controller.resources.csiProvisioner | nindent 12 }}
60+
- name: liveness-probe
61+
image: "{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"
62+
args:
63+
- --csi-address=/csi/csi.sock
64+
- --probe-timeout=3s
65+
- --health-port=29642
66+
- --v=2
67+
imagePullPolicy: {{ .Values.image.livenessProbe.pullPolicy }}
68+
volumeMounts:
69+
- name: socket-dir
70+
mountPath: /csi
71+
resources: {{- toYaml .Values.controller.resources.livenessProbe | nindent 12 }}
72+
- name: smb
73+
image: "{{ .Values.image.smb.repository }}:{{ .Values.image.smb.tag }}"
74+
imagePullPolicy: {{ .Values.image.smb.pullPolicy }}
75+
args:
76+
- "--v={{ .Values.controller.logLevel }}"
77+
- "--endpoint=$(CSI_ENDPOINT)"
78+
- "--metrics-address=0.0.0.0:{{ .Values.controller.metricsPort }}"
79+
ports:
80+
- containerPort: 29642
81+
name: healthz
82+
protocol: TCP
83+
- containerPort: {{ .Values.controller.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:///csi/csi.sock
97+
securityContext:
98+
privileged: true
99+
volumeMounts:
100+
- mountPath: /csi
101+
name: socket-dir
102+
resources: {{- toYaml .Values.controller.resources.smb | nindent 12 }}
103+
volumes:
104+
- name: socket-dir
105+
emptyDir: {}
106+
{{- if .Values.securityContext }}
107+
securityContext: {{- toYaml .Values.securityContext | nindent 8 }}
108+
{{- end }}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
apiVersion: storage.k8s.io/v1
3+
kind: CSIDriver
4+
metadata:
5+
name: {{ .Values.driver.name }}
6+
spec:
7+
attachRequired: false
8+
podInfoOnMount: true
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
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+
{{- with .Values.windows.tolerations }}
18+
tolerations:
19+
{{ toYaml . | indent 8 }}
20+
{{- end }}
21+
nodeSelector:
22+
kubernetes.io/os: windows
23+
priorityClassName: system-node-critical
24+
{{- include "smb.pullSecrets" . | indent 6 }}
25+
containers:
26+
- name: liveness-probe
27+
volumeMounts:
28+
- mountPath: C:\csi
29+
name: plugin-dir
30+
image: "{{ .Values.windows.image.livenessProbe.repository }}:{{ .Values.windows.image.livenessProbe.tag }}"
31+
args:
32+
- --csi-address=$(CSI_ENDPOINT)
33+
- --probe-timeout=3s
34+
- --health-port=29643
35+
- --v=2
36+
env:
37+
- name: CSI_ENDPOINT
38+
value: unix://C:\\csi\\csi.sock
39+
imagePullPolicy: {{ .Values.windows.image.livenessProbe.pullPolicy }}
40+
resources:
41+
limits:
42+
cpu: 200m
43+
memory: 200Mi
44+
requests:
45+
cpu: 10m
46+
memory: 20Mi
47+
- name: node-driver-registrar
48+
image: "{{ .Values.windows.image.nodeDriverRegistrar.repository }}:{{ .Values.windows.image.nodeDriverRegistrar.tag }}"
49+
args:
50+
- --v=2
51+
- --csi-address=$(CSI_ENDPOINT)
52+
- --kubelet-registration-path={{ .Values.windows.kubelet }}\\plugins\\{{ .Values.driver.name }}\\csi.sock
53+
env:
54+
- name: CSI_ENDPOINT
55+
value: unix://C:\\csi\\csi.sock
56+
- name: KUBE_NODE_NAME
57+
valueFrom:
58+
fieldRef:
59+
fieldPath: spec.nodeName
60+
imagePullPolicy: {{ .Values.windows.image.nodeDriverRegistrar.pullPolicy }}
61+
volumeMounts:
62+
- name: plugin-dir
63+
mountPath: C:\csi
64+
- name: registration-dir
65+
mountPath: C:\registration
66+
resources:
67+
limits:
68+
cpu: 200m
69+
memory: 200Mi
70+
requests:
71+
cpu: 10m
72+
memory: 20Mi
73+
- name: smb
74+
image: "{{ .Values.image.smb.repository }}:{{ .Values.image.smb.tag }}"
75+
imagePullPolicy: {{ .Values.image.smb.pullPolicy }}
76+
args:
77+
- "--v={{ .Values.node.logLevel }}"
78+
- "--drivername={{ .Values.driver.name }}"
79+
- --endpoint=$(CSI_ENDPOINT)
80+
- --nodeid=$(KUBE_NODE_NAME)
81+
- "--metrics-address=0.0.0.0:{{ .Values.node.metricsPort }}"
82+
ports:
83+
- containerPort: 29643
84+
name: healthz
85+
protocol: TCP
86+
- containerPort: {{ .Values.node.metricsPort }}
87+
name: metrics
88+
protocol: TCP
89+
livenessProbe:
90+
failureThreshold: 5
91+
httpGet:
92+
path: /healthz
93+
port: healthz
94+
initialDelaySeconds: 30
95+
timeoutSeconds: 10
96+
periodSeconds: 30
97+
env:
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+
volumeMounts:
106+
- name: kubelet-dir
107+
mountPath: {{ .Values.windows.kubelet }}\
108+
- name: plugin-dir
109+
mountPath: C:\csi
110+
- name: csi-proxy-fs-pipe
111+
mountPath: \\.\pipe\csi-proxy-filesystem-v1beta1
112+
- name: csi-proxy-smb-pipe
113+
mountPath: \\.\pipe\csi-proxy-smb-v1beta1
114+
resources:
115+
limits:
116+
cpu: 400m
117+
memory: 400Mi
118+
requests:
119+
cpu: 10m
120+
memory: 20Mi
121+
volumes:
122+
- name: csi-proxy-fs-pipe
123+
hostPath:
124+
path: \\.\pipe\csi-proxy-filesystem-v1beta1
125+
type: ""
126+
- name: csi-proxy-smb-pipe
127+
hostPath:
128+
path: \\.\pipe\csi-proxy-smb-v1beta1
129+
type: ""
130+
- name: registration-dir
131+
hostPath:
132+
path: {{ .Values.windows.kubelet }}\plugins_registry\
133+
type: Directory
134+
- name: kubelet-dir
135+
hostPath:
136+
path: {{ .Values.windows.kubelet }}\
137+
type: Directory
138+
- name: plugin-dir
139+
hostPath:
140+
path: {{ .Values.windows.kubelet }}\plugins\{{ .Values.driver.name }}\
141+
type: DirectoryOrCreate
142+
{{- end -}}

0 commit comments

Comments
 (0)