-
Notifications
You must be signed in to change notification settings - Fork 138
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
ae903e7
commit bcddc7c
Showing
26 changed files
with
1,221 additions
and
23 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
apiVersion: v1 | ||
appVersion: latest | ||
appVersion: v1.6.0 | ||
description: SMB CSI Driver for Kubernetes | ||
name: csi-driver-smb | ||
version: v1.6.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
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: v1.6.0 | ||
description: SMB CSI Driver for Kubernetes | ||
name: csi-driver-smb | ||
version: v1.6.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,29 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
|
||
{{/* Expand the name of the chart.*/}} | ||
{{- define "smb.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
|
||
{{/* labels for helm resources */}} | ||
{{- define "smb.labels" -}} | ||
labels: | ||
app.kubernetes.io/instance: "{{ .Release.Name }}" | ||
app.kubernetes.io/managed-by: "{{ .Release.Service }}" | ||
app.kubernetes.io/name: "{{ template "smb.name" . }}" | ||
app.kubernetes.io/version: "{{ .Chart.AppVersion }}" | ||
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" | ||
{{- if .Values.customLabels }} | ||
{{ toYaml .Values.customLabels | indent 2 -}} | ||
{{- end }} | ||
{{- end -}} | ||
|
||
{{/* pull secrets for containers */}} | ||
{{- define "smb.pullSecrets" -}} | ||
{{- if .Values.imagePullSecrets }} | ||
imagePullSecrets: | ||
{{- range .Values.imagePullSecrets }} | ||
- name: {{ . }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end -}} |
123 changes: 123 additions & 0 deletions
123
charts/v1.6.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,123 @@ | ||
--- | ||
kind: Deployment | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: {{ .Values.controller.name }} | ||
namespace: {{ .Release.Namespace }} | ||
{{ include "smb.labels" . | indent 2 }} | ||
spec: | ||
replicas: {{ .Values.controller.replicas }} | ||
selector: | ||
matchLabels: | ||
app: {{ .Values.controller.name }} | ||
template: | ||
metadata: | ||
{{ include "smb.labels" . | indent 6 }} | ||
app: {{ .Values.controller.name }} | ||
{{- if .Values.podLabels }} | ||
{{- toYaml .Values.podLabels | nindent 8 }} | ||
{{- end }} | ||
{{- if .Values.podAnnotations }} | ||
annotations: | ||
{{ toYaml .Values.podAnnotations | indent 8 }} | ||
{{- end }} | ||
spec: | ||
{{- with .Values.controller.affinity }} | ||
affinity: | ||
{{ toYaml . | indent 8 }} | ||
{{- end }} | ||
dnsPolicy: {{ .Values.controller.dnsPolicy }} | ||
serviceAccountName: {{ .Values.serviceAccount.controller }} | ||
nodeSelector: | ||
{{- with .Values.controller.nodeSelector }} | ||
{{ toYaml . | indent 8 }} | ||
{{- end }} | ||
kubernetes.io/os: linux | ||
{{- if .Values.controller.runOnMaster}} | ||
kubernetes.io/role: master | ||
{{- end}} | ||
priorityClassName: system-cluster-critical | ||
{{- with .Values.controller.tolerations }} | ||
tolerations: | ||
{{ toYaml . | indent 8 }} | ||
{{- end }} | ||
{{- include "smb.pullSecrets" . | indent 6 }} | ||
containers: | ||
- name: csi-provisioner | ||
{{- if hasPrefix "/" .Values.image.csiProvisioner.repository }} | ||
image: "{{ .Values.image.baseRepo }}{{ .Values.image.csiProvisioner.repository }}:{{ .Values.image.csiProvisioner.tag }}" | ||
{{- else }} | ||
image: "{{ .Values.image.csiProvisioner.repository }}:{{ .Values.image.csiProvisioner.tag }}" | ||
{{- end }} | ||
args: | ||
- "-v=2" | ||
- "--csi-address=$(ADDRESS)" | ||
- "--leader-election" | ||
- "--leader-election-namespace={{ .Release.Namespace }}" | ||
env: | ||
- name: ADDRESS | ||
value: /csi/csi.sock | ||
imagePullPolicy: {{ .Values.image.csiProvisioner.pullPolicy }} | ||
volumeMounts: | ||
- mountPath: /csi | ||
name: socket-dir | ||
resources: {{- toYaml .Values.controller.resources.csiProvisioner | nindent 12 }} | ||
- name: liveness-probe | ||
{{- if hasPrefix "/" .Values.image.livenessProbe.repository }} | ||
image: "{{ .Values.image.baseRepo }}{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}" | ||
{{- else }} | ||
image: "{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}" | ||
{{- end }} | ||
args: | ||
- --csi-address=/csi/csi.sock | ||
- --probe-timeout=3s | ||
- --health-port={{ .Values.controller.livenessProbe.healthPort }} | ||
- --v=2 | ||
imagePullPolicy: {{ .Values.image.livenessProbe.pullPolicy }} | ||
volumeMounts: | ||
- name: socket-dir | ||
mountPath: /csi | ||
resources: {{- toYaml .Values.controller.resources.livenessProbe | nindent 12 }} | ||
- name: smb | ||
{{- if hasPrefix "/" .Values.image.smb.repository }} | ||
image: "{{ .Values.image.baseRepo }}{{ .Values.image.smb.repository }}:{{ .Values.image.smb.tag }}" | ||
{{- else }} | ||
image: "{{ .Values.image.smb.repository }}:{{ .Values.image.smb.tag }}" | ||
{{- end }} | ||
imagePullPolicy: {{ .Values.image.smb.pullPolicy }} | ||
args: | ||
- "--v={{ .Values.controller.logLevel }}" | ||
- "--endpoint=$(CSI_ENDPOINT)" | ||
- "--metrics-address=0.0.0.0:{{ .Values.controller.metricsPort }}" | ||
- "--drivername={{ .Values.driver.name }}" | ||
- "--working-mount-dir={{ .Values.controller.workingMountDir }}" | ||
ports: | ||
- containerPort: {{ .Values.controller.livenessProbe.healthPort }} | ||
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 | ||
securityContext: | ||
privileged: true | ||
volumeMounts: | ||
- mountPath: /csi | ||
name: socket-dir | ||
resources: {{- toYaml .Values.controller.resources.smb | nindent 12 }} | ||
volumes: | ||
- name: socket-dir | ||
emptyDir: {} | ||
{{- if .Values.securityContext }} | ||
securityContext: {{- toYaml .Values.securityContext | nindent 8 }} | ||
{{- end }} |
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/v1 | ||
kind: CSIDriver | ||
metadata: | ||
name: {{ .Values.driver.name }} | ||
spec: | ||
attachRequired: false | ||
podInfoOnMount: true |
Oops, something went wrong.