Skip to content

Commit

Permalink
doc: cut v0.4.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Oct 6, 2020
1 parent 8d95859 commit 9a9f0e8
Show file tree
Hide file tree
Showing 23 changed files with 996 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ This driver allows Kubernetes to use [SMB](https://wiki.wireshark.org/SMB) CSI v
|SMB CSI Driver Version | Image | 1.14+ |
|------------------------|----------------------------------------------|--------|
|master branch |mcr.microsoft.com/k8s/csi/smb-csi:latest | yes |
|v0.4.0 |mcr.microsoft.com/k8s/csi/smb-csi:v0.4.0 | yes |
|v0.3.0 |mcr.microsoft.com/k8s/csi/smb-csi:v0.3.0 | yes |
|v0.2.0 |mcr.microsoft.com/k8s/csi/smb-csi:v0.2.0 | yes |

### Driver parameters
Please refer to [`smb.csi.k8s.io` driver parameters](./docs/driver-parameters.md)
Expand Down
2 changes: 1 addition & 1 deletion charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ $ helm search repo -l csi-driver-smb/
### Install a specific version of Helm chart
Specify the version of the chart to be installed using the `--version` parameter.
```console
helm install --name csi-driver-smb csi-driver-smb/csi-driver-smb --namespace kube-system --version v0.3.0
helm install --name csi-driver-smb csi-driver-smb/csi-driver-smb --namespace kube-system --version v0.4.0
```

## Uninstall
Expand Down
26 changes: 22 additions & 4 deletions charts/index.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
apiVersion: v1
entries:
csi-driver-smb:
- apiVersion: v1
appVersion: v0.4.0
created: "2020-10-06T02:45:33.846857672Z"
description: SMB CSI Driver for Kubernetes
digest: fb6d581ba5d4d1d78ca468f6daa4a24c47bb147b74d005d3c394521b4e534a3e
name: csi-driver-smb
urls:
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/v0.4.0/csi-driver-smb-v0.4.0.tgz
version: v0.4.0
- apiVersion: v1
appVersion: v0.3.0
created: "2020-08-19T06:04:00.104700521Z"
created: "2020-10-06T02:45:33.845894964Z"
description: SMB CSI Driver for Kubernetes
digest: ee9e58db6d4a95491e2012c6607126bbff827b9c439e90e9a9798d2a73b0cb22
name: csi-driver-smb
Expand All @@ -12,7 +21,7 @@ entries:
version: v0.3.0
- apiVersion: v1
appVersion: v0.2.0
created: "2020-08-19T06:04:00.104239817Z"
created: "2020-10-06T02:45:33.845424061Z"
description: SMB CSI Driver for Kubernetes
digest: bc0aca4acd74b6c521d85d6d75e1dab22c06dcc9a2e0430abc203a2d5006403d
name: csi-driver-smb
Expand All @@ -21,11 +30,20 @@ entries:
version: v0.2.0
- apiVersion: v1
appVersion: latest
created: "2020-08-19T06:04:00.103761712Z"
created: "2020-10-06T02:45:33.846331468Z"
description: SMB CSI Driver for Kubernetes
digest: 726616076e41190988103004a71710847e95deee700f296730f2c264df269d06
name: csi-driver-smb
urls:
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/v0.4.0/csi-driver-smb-latest.tgz
version: latest
- apiVersion: v1
appVersion: latest
created: "2020-10-06T02:45:33.844857657Z"
description: SMB CSI Driver for Kubernetes
digest: 726616076e41190988103004a71710847e95deee700f296730f2c264df269d06
name: csi-driver-smb
urls:
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/latest/csi-driver-smb-latest.tgz
version: latest
generated: "2020-08-19T06:04:00.102958204Z"
generated: "2020-10-06T02:45:33.842420338Z"
Binary file added charts/v0.4.0/csi-driver-smb-v0.4.0.tgz
Binary file not shown.
5 changes: 5 additions & 0 deletions charts/v0.4.0/csi-driver-smb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
appVersion: v0.4.0
description: SMB CSI Driver for Kubernetes
name: csi-driver-smb
version: v0.4.0
5 changes: 5 additions & 0 deletions charts/v0.4.0/csi-driver-smb/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The CSI SMB Driver is getting deployed to your cluster.

To check CSI SMB Driver pods status, please run:

kubectl --namespace={{ .Release.Namespace }} get pods --selector="release={{ .Release.Name }}" --watch
21 changes: 21 additions & 0 deletions charts/v0.4.0/csi-driver-smb/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{/* vim: set filetype=mustache: */}}

{{/* labels for helm resources */}}
{{- define "smb.labels" -}}
labels:
heritage: "{{ .Release.Service }}"
release: "{{ .Release.Name }}"
revision: "{{ .Release.Revision }}"
chart: "{{ .Chart.Name }}"
chartVersion: "{{ .Chart.Version }}"
{{- end -}}

{{/* pull secrets for containers */}}
{{- define "smb.pullSecrets" -}}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
{{- end -}}
105 changes: 105 additions & 0 deletions charts/v0.4.0/csi-driver-smb/templates/csi-smb-controller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: csi-smb-controller
namespace: {{ .Release.Namespace }}
{{ include "smb.labels" . | indent 2 }}
spec:
replicas: {{ .Values.controller.replicas }}
selector:
matchLabels:
app: csi-smb-controller
template:
metadata:
{{ include "smb.labels" . | indent 6 }}
app: csi-smb-controller
spec:
serviceAccountName: csi-smb-controller-sa
nodeSelector:
kubernetes.io/os: linux
priorityClassName: system-cluster-critical
tolerations:
- key: "node-role.kubernetes.io/master"
operator: "Equal"
value: "true"
effect: "NoSchedule"
{{- include "smb.pullSecrets" . | indent 6 }}
containers:
- name: csi-provisioner
image: "{{ .Values.image.csiProvisioner.repository }}:{{ .Values.image.csiProvisioner.tag }}"
args:
- "-v=5"
- "--csi-address=$(ADDRESS)"
- "--enable-leader-election"
- "--leader-election-type=leases"
env:
- name: ADDRESS
value: /csi/csi.sock
imagePullPolicy: {{ .Values.image.csiProvisioner.pullPolicy }}
volumeMounts:
- mountPath: /csi
name: socket-dir
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 10m
memory: 20Mi
- name: liveness-probe
image: "{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"
args:
- --csi-address=/csi/csi.sock
- --connection-timeout=3s
- --health-port=29642
- --v=5
imagePullPolicy: {{ .Values.image.livenessProbe.pullPolicy }}
volumeMounts:
- name: socket-dir
mountPath: /csi
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 10m
memory: 20Mi
- name: smb
image: "{{ .Values.image.smb.repository }}:{{ .Values.image.smb.tag }}"
imagePullPolicy: {{ .Values.image.smb.pullPolicy }}
args:
- "--v=5"
- "--endpoint=$(CSI_ENDPOINT)"
- "--metrics-address=0.0.0.0:{{ .Values.controller.metricsPort }}"
ports:
- containerPort: 29642
name: healthz
protocol: TCP
- containerPort: {{ .Values.controller.metricsPort }}
name: metrics
protocol: TCP
livenessProbe:
failureThreshold: 5
httpGet:
path: /healthz
port: healthz
initialDelaySeconds: 30
timeoutSeconds: 10
periodSeconds: 30
env:
- name: CSI_ENDPOINT
value: unix:///csi/csi.sock
volumeMounts:
- mountPath: /csi
name: socket-dir
resources:
limits:
cpu: 200m
memory: 200Mi
requests:
cpu: 10m
memory: 20Mi
volumes:
- name: socket-dir
emptyDir: {}
8 changes: 8 additions & 0 deletions charts/v0.4.0/csi-driver-smb/templates/csi-smb-driver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
apiVersion: storage.k8s.io/v1beta1
kind: CSIDriver
metadata:
name: smb.csi.k8s.io
spec:
attachRequired: false
podInfoOnMount: true
141 changes: 141 additions & 0 deletions charts/v0.4.0/csi-driver-smb/templates/csi-smb-node-windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
{{- if .Values.windows.enabled}}
kind: DaemonSet
apiVersion: apps/v1
metadata:
name: csi-smb-node-win
namespace: {{ .Release.Namespace }}
{{ include "smb.labels" . | indent 2 }}
spec:
selector:
matchLabels:
app: csi-smb-node-win
template:
metadata:
{{ include "smb.labels" . | indent 6 }}
app: csi-smb-node-win
spec:
nodeSelector:
kubernetes.io/os: windows
priorityClassName: system-node-critical
{{- include "smb.pullSecrets" . | indent 6 }}
containers:
- name: liveness-probe
volumeMounts:
- mountPath: C:\csi
name: plugin-dir
image: "{{ .Values.windows.image.livenessProbe.repository }}:{{ .Values.windows.image.livenessProbe.tag }}"
args:
- --csi-address=$(CSI_ENDPOINT)
- --probe-timeout=3s
- --health-port=29643
- --v=5
env:
- name: CSI_ENDPOINT
value: unix://C:\\csi\\csi.sock
imagePullPolicy: {{ .Values.windows.image.livenessProbe.pullPolicy }}
resources:
limits:
cpu: 200m
memory: 200Mi
requests:
cpu: 10m
memory: 20Mi
- name: node-driver-registrar
image: "{{ .Values.windows.image.nodeDriverRegistrar.repository }}:{{ .Values.windows.image.nodeDriverRegistrar.tag }}"
args:
- --v=5
- --csi-address=$(CSI_ENDPOINT)
- --kubelet-registration-path=C:\\var\\lib\\kubelet\\plugins\\smb.csi.k8s.io\\csi.sock
env:
- name: CSI_ENDPOINT
value: unix://C:\\csi\\csi.sock
- name: KUBE_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
imagePullPolicy: {{ .Values.windows.image.nodeDriverRegistrar.pullPolicy }}
volumeMounts:
- name: kubelet-dir
mountPath: "C:\\var\\lib\\kubelet"
- name: plugin-dir
mountPath: C:\csi
- name: registration-dir
mountPath: C:\registration
resources:
limits:
cpu: 200m
memory: 200Mi
requests:
cpu: 10m
memory: 20Mi
- name: smb
image: "{{ .Values.image.smb.repository }}:{{ .Values.image.smb.tag }}"
imagePullPolicy: {{ .Values.image.smb.pullPolicy }}
args:
- --v=5
- --endpoint=$(CSI_ENDPOINT)
- --nodeid=$(KUBE_NODE_NAME)
- "--metrics-address=0.0.0.0:{{ .Values.node.metricsPort }}"
ports:
- containerPort: 29643
name: healthz
protocol: TCP
- containerPort: {{ .Values.node.metricsPort }}
name: metrics
protocol: TCP
livenessProbe:
failureThreshold: 5
httpGet:
path: /healthz
port: healthz
initialDelaySeconds: 30
timeoutSeconds: 10
periodSeconds: 30
env:
- name: CSI_ENDPOINT
value: unix://C:\\csi\\csi.sock
- name: KUBE_NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
securityContext:
privileged: true
volumeMounts:
- name: kubelet-dir
mountPath: "C:\\var\\lib\\kubelet"
- name: plugin-dir
mountPath: C:\csi
- name: csi-proxy-fs-pipe
mountPath: \\.\pipe\csi-proxy-filesystem-v1alpha1
- name: csi-proxy-smb-pipe
mountPath: \\.\pipe\csi-proxy-smb-v1alpha1
resources:
limits:
cpu: 400m
memory: 400Mi
requests:
cpu: 10m
memory: 20Mi
volumes:
- name: csi-proxy-fs-pipe
hostPath:
path: \\.\pipe\csi-proxy-filesystem-v1alpha1
type: ""
- name: csi-proxy-smb-pipe
hostPath:
path: \\.\pipe\csi-proxy-smb-v1alpha1
type: ""
- name: registration-dir
hostPath:
path: {{ .Values.kubelet.windowsPath }}\plugins_registry\
type: Directory
- name: kubelet-dir
hostPath:
path: {{ .Values.kubelet.windowsPath }}\
type: Directory
- name: plugin-dir
hostPath:
path: {{ .Values.kubelet.windowsPath }}\plugins\smb.csi.k8s.io\
type: DirectoryOrCreate
{{- end -}}
Loading

0 comments on commit 9a9f0e8

Please sign in to comment.