Skip to content

Commit 5b795f7

Browse files
committed
doc: cut v0.3.0 release
fix chart index
1 parent 8eb0ffa commit 5b795f7

23 files changed

+964
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
### About
77
This driver allows Kubernetes to use [SMB](https://wiki.wireshark.org/SMB) CSI volume, csi plugin name: `smb.csi.k8s.io`
88

9-
### Project status: alpha
9+
### Project status: beta
1010

1111
### Container Images & Kubernetes Compatibility:
1212
|SMB CSI Driver Version | Image | 1.14+ |
1313
|------------------------|----------------------------------------------|--------|
1414
|master branch |mcr.microsoft.com/k8s/csi/smb-csi:latest | yes |
15+
|v0.3.0 |mcr.microsoft.com/k8s/csi/smb-csi:v0.3.0 | yes |
1516
|v0.2.0 |mcr.microsoft.com/k8s/csi/smb-csi:v0.2.0 | yes |
16-
|v0.1.0 |mcr.microsoft.com/k8s/csi/smb-csi:v0.1.0 | yes |
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
@@ -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.2.0
32+
helm install --name csi-driver-smb csi-driver-smb/csi-driver-smb --namespace kube-system --version v0.3.0
3333
```
3434

3535
## Uninstall

charts/index.yaml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,31 @@
11
apiVersion: v1
22
entries:
33
csi-driver-smb:
4+
- apiVersion: v1
5+
appVersion: v0.3.0
6+
created: "2020-08-19T06:04:00.104700521Z"
7+
description: SMB CSI Driver for Kubernetes
8+
digest: ee9e58db6d4a95491e2012c6607126bbff827b9c439e90e9a9798d2a73b0cb22
9+
name: csi-driver-smb
10+
urls:
11+
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/v0.3.0/csi-driver-smb-v0.3.0.tgz
12+
version: v0.3.0
413
- apiVersion: v1
514
appVersion: v0.2.0
6-
created: "2020-08-12T01:57:17.022485789Z"
15+
created: "2020-08-19T06:04:00.104239817Z"
716
description: SMB CSI Driver for Kubernetes
817
digest: bc0aca4acd74b6c521d85d6d75e1dab22c06dcc9a2e0430abc203a2d5006403d
918
name: csi-driver-smb
1019
urls:
1120
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/v0.2.0/csi-driver-smb-v0.2.0.tgz
1221
version: v0.2.0
13-
generated: "2020-08-12T01:57:17.021803482Z"
22+
- apiVersion: v1
23+
appVersion: latest
24+
created: "2020-08-19T06:04:00.103761712Z"
25+
description: SMB CSI Driver for Kubernetes
26+
digest: 726616076e41190988103004a71710847e95deee700f296730f2c264df269d06
27+
name: csi-driver-smb
28+
urls:
29+
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/latest/csi-driver-smb-latest.tgz
30+
version: latest
31+
generated: "2020-08-19T06:04:00.102958204Z"
2.81 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.3.0
3+
description: SMB CSI Driver for Kubernetes
4+
name: csi-driver-smb
5+
version: v0.3.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: 11 additions & 0 deletions
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 "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 -}}
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
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+
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: 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+
- --connection-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+
ports:
74+
- containerPort: 29642
75+
name: healthz
76+
protocol: TCP
77+
- containerPort: 29644
78+
name: metrics
79+
protocol: TCP
80+
livenessProbe:
81+
failureThreshold: 5
82+
httpGet:
83+
path: /healthz
84+
port: healthz
85+
initialDelaySeconds: 30
86+
timeoutSeconds: 10
87+
periodSeconds: 30
88+
env:
89+
- name: CSI_ENDPOINT
90+
value: unix:///csi/csi.sock
91+
volumeMounts:
92+
- mountPath: /csi
93+
name: socket-dir
94+
resources:
95+
limits:
96+
cpu: 200m
97+
memory: 200Mi
98+
requests:
99+
cpu: 10m
100+
memory: 20Mi
101+
volumes:
102+
- name: socket-dir
103+
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: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
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+
containers:
21+
- name: liveness-probe
22+
volumeMounts:
23+
- mountPath: C:\csi
24+
name: plugin-dir
25+
image: "{{ .Values.windows.image.livenessProbe.repository }}:{{ .Values.windows.image.livenessProbe.tag }}"
26+
args:
27+
- --csi-address=$(CSI_ENDPOINT)
28+
- --probe-timeout=3s
29+
- --health-port=29643
30+
- --v=5
31+
env:
32+
- name: CSI_ENDPOINT
33+
value: unix://C:\\csi\\csi.sock
34+
imagePullPolicy: {{ .Values.windows.image.livenessProbe.pullPolicy }}
35+
resources:
36+
limits:
37+
cpu: 200m
38+
memory: 200Mi
39+
requests:
40+
cpu: 10m
41+
memory: 20Mi
42+
- name: node-driver-registrar
43+
image: "{{ .Values.windows.image.nodeDriverRegistrar.repository }}:{{ .Values.windows.image.nodeDriverRegistrar.tag }}"
44+
args:
45+
- --v=5
46+
- --csi-address=$(CSI_ENDPOINT)
47+
- --kubelet-registration-path=C:\\var\\lib\\kubelet\\plugins\\smb.csi.k8s.io\\csi.sock
48+
env:
49+
- name: CSI_ENDPOINT
50+
value: unix://C:\\csi\\csi.sock
51+
- name: KUBE_NODE_NAME
52+
valueFrom:
53+
fieldRef:
54+
fieldPath: spec.nodeName
55+
imagePullPolicy: {{ .Values.windows.image.nodeDriverRegistrar.pullPolicy }}
56+
volumeMounts:
57+
- name: kubelet-dir
58+
mountPath: "C:\\var\\lib\\kubelet"
59+
- name: plugin-dir
60+
mountPath: C:\csi
61+
- name: registration-dir
62+
mountPath: C:\registration
63+
resources:
64+
limits:
65+
cpu: 200m
66+
memory: 200Mi
67+
requests:
68+
cpu: 10m
69+
memory: 20Mi
70+
- name: smb
71+
image: "{{ .Values.image.smb.repository }}:{{ .Values.image.smb.tag }}"
72+
imagePullPolicy: {{ .Values.image.smb.pullPolicy }}
73+
args:
74+
- --v=5
75+
- --endpoint=$(CSI_ENDPOINT)
76+
- --nodeid=$(KUBE_NODE_NAME)
77+
ports:
78+
- containerPort: 29643
79+
name: healthz
80+
protocol: TCP
81+
- containerPort: 29645
82+
name: metrics
83+
protocol: TCP
84+
livenessProbe:
85+
failureThreshold: 5
86+
httpGet:
87+
path: /healthz
88+
port: healthz
89+
initialDelaySeconds: 30
90+
timeoutSeconds: 10
91+
periodSeconds: 30
92+
env:
93+
- name: CSI_ENDPOINT
94+
value: unix://C:\\csi\\csi.sock
95+
- name: KUBE_NODE_NAME
96+
valueFrom:
97+
fieldRef:
98+
apiVersion: v1
99+
fieldPath: spec.nodeName
100+
securityContext:
101+
privileged: true
102+
volumeMounts:
103+
- name: kubelet-dir
104+
mountPath: "C:\\var\\lib\\kubelet"
105+
- name: plugin-dir
106+
mountPath: C:\csi
107+
- name: csi-proxy-fs-pipe
108+
mountPath: \\.\pipe\csi-proxy-filesystem-v1alpha1
109+
- name: csi-proxy-smb-pipe
110+
mountPath: \\.\pipe\csi-proxy-smb-v1alpha1
111+
resources:
112+
limits:
113+
cpu: 400m
114+
memory: 400Mi
115+
requests:
116+
cpu: 10m
117+
memory: 20Mi
118+
volumes:
119+
- name: csi-proxy-fs-pipe
120+
hostPath:
121+
path: \\.\pipe\csi-proxy-filesystem-v1alpha1
122+
type: ""
123+
- name: csi-proxy-smb-pipe
124+
hostPath:
125+
path: \\.\pipe\csi-proxy-smb-v1alpha1
126+
type: ""
127+
- name: registration-dir
128+
hostPath:
129+
path: C:\var\lib\kubelet\plugins_registry\
130+
type: Directory
131+
- name: kubelet-dir
132+
hostPath:
133+
path: C:\var\lib\kubelet\
134+
type: Directory
135+
- name: plugin-dir
136+
hostPath:
137+
path: C:\var\lib\kubelet\plugins\smb.csi.k8s.io\
138+
type: DirectoryOrCreate
139+
{{- end -}}

0 commit comments

Comments
 (0)