-
Notifications
You must be signed in to change notification settings - Fork 136
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
a2dffb8
commit 15b1714
Showing
6 changed files
with
142 additions
and
3 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
Binary file not shown.
119 changes: 119 additions & 0 deletions
119
charts/latest/csi-driver-smb/templates/csi-smb-node-windows-hostprocess.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,119 @@ | ||
{{- if and .Values.windows.enabled .Values.windows.useHostProcessContainers }} | ||
kind: DaemonSet | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: {{ .Values.windows.dsName }} | ||
namespace: {{ .Release.Namespace }} | ||
{{ include "smb.labels" . | indent 2 }} | ||
spec: | ||
updateStrategy: | ||
rollingUpdate: | ||
maxUnavailable: {{ .Values.node.maxUnavailable }} | ||
type: RollingUpdate | ||
selector: | ||
matchLabels: | ||
app: {{ .Values.windows.dsName }} | ||
template: | ||
metadata: | ||
{{ include "smb.labels" . | indent 6 }} | ||
app: {{ .Values.windows.dsName }} | ||
spec: | ||
{{- with .Values.windows.tolerations }} | ||
tolerations: | ||
{{ toYaml . | indent 8 }} | ||
{{- end }} | ||
nodeSelector: | ||
kubernetes.io/os: windows | ||
{{- with .Values.node.nodeSelector }} | ||
{{ toYaml . | indent 8 }} | ||
{{- end }} | ||
{{- with .Values.node.affinity }} | ||
affinity: | ||
{{ toYaml . | indent 8 }} | ||
{{- end }} | ||
priorityClassName: {{ .Values.priorityClassName | quote }} | ||
securityContext: | ||
seccompProfile: | ||
type: RuntimeDefault | ||
windowsOptions: | ||
hostProcess: true | ||
runAsUserName: "NT AUTHORITY\\SYSTEM" | ||
serviceAccountName: {{ .Values.serviceAccount.node }} | ||
{{- include "smb.pullSecrets" . | indent 6 }} | ||
initContainers: | ||
- name: init | ||
{{- if hasPrefix "/" .Values.image.smb.repository }} | ||
image: "{{ .Values.image.baseRepo }}{{ .Values.image.smb.repository }}:{{ .Values.image.smb.tag }}-windows-hp" | ||
{{- else }} | ||
image: "{{ .Values.image.smb.repository }}:{{ .Values.image.smb.tag }}-windows-hp" | ||
{{- end }} | ||
imagePullPolicy: {{ .Values.image.pullPolicy }} | ||
command: | ||
- "powershell.exe" | ||
- "-c" | ||
- "New-Item -ItemType Directory -Path C:\\var\\lib\\kubelet\\plugins\\{{ .Values.driver.name }}\\ -Force" | ||
containers: | ||
- name: node-driver-registrar | ||
{{- if hasPrefix "/" .Values.image.nodeDriverRegistrar.repository }} | ||
image: "{{ .Values.image.baseRepo }}{{ .Values.image.nodeDriverRegistrar.repository }}:{{ .Values.image.nodeDriverRegistrar.tag }}" | ||
{{- else }} | ||
image: "{{ .Values.image.nodeDriverRegistrar.repository }}:{{ .Values.image.nodeDriverRegistrar.tag }}" | ||
{{- end }} | ||
command: | ||
- "csi-node-driver-registrar.exe" | ||
args: | ||
- --v=2 | ||
- --csi-address=$(CSI_ENDPOINT) | ||
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH) | ||
- --plugin-registration-path=$(PLUGIN_REG_DIR) | ||
env: | ||
- name: CSI_ENDPOINT | ||
value: unix://C:\\csi\\csi.sock | ||
- name: DRIVER_REG_SOCK_PATH | ||
value: {{ .Values.windows.kubelet | replace "\\" "\\\\" }}\\plugins\\{{ .Values.driver.name }}\\csi.sock | ||
- name: PLUGIN_REG_DIR | ||
value: {{ .Values.windows.kubelet | replace "\\" "\\\\" }}\\plugins_registry\\ | ||
- name: KUBE_NODE_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: spec.nodeName | ||
imagePullPolicy: {{ .Values.image.nodeDriverRegistrar.pullPolicy }} | ||
resources: {{- toYaml .Values.windows.resources.nodeDriverRegistrar | nindent 12 }} | ||
- name: smb | ||
{{- if hasPrefix "/" .Values.image.smb.repository }} | ||
image: "{{ .Values.image.baseRepo }}{{ .Values.image.smb.repository }}:{{ .Values.image.smb.tag }}-windows-hp" | ||
{{- else }} | ||
image: "{{ .Values.image.smb.repository }}:{{ .Values.image.smb.tag }}-windows-hp" | ||
{{- end }} | ||
imagePullPolicy: {{ .Values.image.smb.pullPolicy }} | ||
command: | ||
- "smbplugin.exe" | ||
args: | ||
- "--v={{ .Values.node.logLevel }}" | ||
- "--drivername={{ .Values.driver.name }}" | ||
- --endpoint=$(CSI_ENDPOINT) | ||
- --nodeid=$(KUBE_NODE_NAME) | ||
- "--enable-get-volume-stats={{ .Values.feature.enableGetVolumeStats }}" | ||
- "--remove-smb-mapping-during-unmount={{ .Values.windows.removeSMBMappingDuringUnmount }}" | ||
ports: | ||
- containerPort: {{ .Values.node.livenessProbe.healthPort }} | ||
name: healthz | ||
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 | ||
resources: {{- toYaml .Values.windows.resources.smb | nindent 12 }} | ||
{{- end -}} |
2 changes: 1 addition & 1 deletion
2
charts/latest/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
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