-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d95859
commit 9a9f0e8
Showing
23 changed files
with
996 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
105
charts/v0.4.0/csi-driver-smb/templates/csi-smb-controller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
141
charts/v0.4.0/csi-driver-smb/templates/csi-smb-node-windows.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 -}} |
Oops, something went wrong.