Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: cut v0.5.0 release #153

Merged
merged 2 commits into from
Nov 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ This driver allows Kubernetes to use [SMB](https://wiki.wireshark.org/SMB) CSI v
### Project status: beta

### Container Images & Kubernetes Compatibility:
|SMB CSI Driver Version | Image | 1.14+ |
|SMB CSI Driver Version | Image | 1.15+ |
|------------------------|----------------------------------------------|--------|
|master branch |mcr.microsoft.com/k8s/csi/smb-csi:latest | yes |
|v0.5.0 |mcr.microsoft.com/k8s/csi/smb-csi:v0.5.0 | 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 |

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.4.0
helm install --name csi-driver-smb csi-driver-smb/csi-driver-smb --namespace kube-system --version v0.5.0
```

## Uninstall
Expand Down
34 changes: 26 additions & 8 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.5.0
created: "2020-11-14T09:10:37.494725989Z"
description: SMB CSI Driver for Kubernetes
digest: b400ef563745dcaf4a819a05b1e8a11d9442ae1ddf46da70542d5c87cd4cd9a1
name: csi-driver-smb
urls:
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/v0.5.0/csi-driver-smb-v0.5.0.tgz
version: v0.5.0
- apiVersion: v1
appVersion: v0.4.0
created: "2020-10-06T02:45:33.846857672Z"
created: "2020-11-14T09:10:37.49240927Z"
description: SMB CSI Driver for Kubernetes
digest: fb6d581ba5d4d1d78ca468f6daa4a24c47bb147b74d005d3c394521b4e534a3e
name: csi-driver-smb
Expand All @@ -12,7 +21,7 @@ entries:
version: v0.4.0
- apiVersion: v1
appVersion: v0.3.0
created: "2020-10-06T02:45:33.845894964Z"
created: "2020-11-14T09:10:37.491337861Z"
description: SMB CSI Driver for Kubernetes
digest: ee9e58db6d4a95491e2012c6607126bbff827b9c439e90e9a9798d2a73b0cb22
name: csi-driver-smb
Expand All @@ -21,7 +30,7 @@ entries:
version: v0.3.0
- apiVersion: v1
appVersion: v0.2.0
created: "2020-10-06T02:45:33.845424061Z"
created: "2020-11-14T09:10:37.490280552Z"
description: SMB CSI Driver for Kubernetes
digest: bc0aca4acd74b6c521d85d6d75e1dab22c06dcc9a2e0430abc203a2d5006403d
name: csi-driver-smb
Expand All @@ -30,20 +39,29 @@ entries:
version: v0.2.0
- apiVersion: v1
appVersion: latest
created: "2020-10-06T02:45:33.846331468Z"
created: "2020-11-14T09:10:37.488677839Z"
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
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/latest/csi-driver-smb-latest.tgz
version: latest
- apiVersion: v1
appVersion: latest
created: "2020-10-06T02:45:33.844857657Z"
created: "2020-11-14T09:10:37.494161984Z"
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
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/v0.5.0/csi-driver-smb-latest.tgz
version: latest
- apiVersion: v1
appVersion: latest
created: "2020-11-14T09:10:37.491875666Z"
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
generated: "2020-10-06T02:45:33.842420338Z"
generated: "2020-11-14T09:10:37.487823232Z"
Binary file added charts/v0.5.0/csi-driver-smb-v0.5.0.tgz
Binary file not shown.
5 changes: 5 additions & 0 deletions charts/v0.5.0/csi-driver-smb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
appVersion: v0.5.0
description: SMB CSI Driver for Kubernetes
name: csi-driver-smb
version: v0.5.0
5 changes: 5 additions & 0 deletions charts/v0.5.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.5.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 -}}
104 changes: 104 additions & 0 deletions charts/v0.5.0/csi-driver-smb/templates/csi-smb-controller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
---
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)"
- "--leader-election"
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
- --probe-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.5.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.5.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