147 lines
4.6 KiB
YAML
147 lines
4.6 KiB
YAML
{{- if .Values.windows.enabled}}
|
|
kind: DaemonSet
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: csi-azurefile-node
|
|
namespace: {{ .Release.Namespace }}
|
|
{{ include "azurefile.labels" . | indent 2 }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: csi-azurefile-node
|
|
template:
|
|
metadata:
|
|
{{ include "azurefile.labels" . | indent 6 }}
|
|
app: csi-azurefile-node
|
|
spec:
|
|
nodeSelector:
|
|
kubernetes.io/os: windows
|
|
priorityClassName: system-node-critical
|
|
tolerations:
|
|
- operator: "Exists"
|
|
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=29613"
|
|
- "--v=5"
|
|
env:
|
|
- name: CSI_ENDPOINT
|
|
value: unix://C:\\csi\\csi.sock
|
|
imagePullPolicy: {{ .Values.windows.image.livenessProbe.pullPolicy }}
|
|
resources:
|
|
limits:
|
|
cpu: 2
|
|
memory: 2Gi
|
|
requests:
|
|
cpu: 10m
|
|
memory: 20Mi
|
|
- name: node-driver-registrar
|
|
image: "{{ .Values.windows.image.nodeDriverRegistrar.repository }}:{{ .Values.windows.image.nodeDriverRegistrar.tag }}"
|
|
args:
|
|
- "--csi-address=$(CSI_ENDPOINT)"
|
|
- "--kubelet-registration-path=C:\\var\\lib\\kubelet\\plugins\\file.csi.azure.com\\csi.sock"
|
|
- "--v=5"
|
|
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: 2
|
|
memory: 2Gi
|
|
requests:
|
|
cpu: 10m
|
|
memory: 20Mi
|
|
- name: azurefile
|
|
image: "{{ .Values.image.azurefile.repository }}:{{ .Values.image.azurefile.tag }}"
|
|
args:
|
|
- "--v=5"
|
|
- "--endpoint=$(CSI_ENDPOINT)"
|
|
- "--nodeid=$(KUBE_NODE_NAME)"
|
|
ports:
|
|
- containerPort: 29613
|
|
name: healthz
|
|
protocol: TCP
|
|
livenessProbe:
|
|
failureThreshold: 5
|
|
httpGet:
|
|
path: /healthz
|
|
port: healthz
|
|
initialDelaySeconds: 30
|
|
timeoutSeconds: 10
|
|
periodSeconds: 30
|
|
env:
|
|
- name: AZURE_CREDENTIAL_FILE
|
|
value: "C:\\k\\azure.json"
|
|
- name: CSI_ENDPOINT
|
|
value: unix://C:\\csi\\csi.sock
|
|
- name: KUBE_NODE_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
apiVersion: v1
|
|
fieldPath: spec.nodeName
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
securityContext:
|
|
privileged: true
|
|
volumeMounts:
|
|
- name: kubelet-dir
|
|
mountPath: "C:\\var\\lib\\kubelet"
|
|
- name: plugin-dir
|
|
mountPath: C:\csi
|
|
- name: azure-config
|
|
mountPath: C:\k
|
|
- 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: 2
|
|
memory: 2Gi
|
|
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: C:\var\lib\kubelet\plugins_registry\
|
|
type: Directory
|
|
- name: kubelet-dir
|
|
hostPath:
|
|
path: C:\var\lib\kubelet\
|
|
type: Directory
|
|
- name: plugin-dir
|
|
hostPath:
|
|
path: C:\var\lib\kubelet\plugins\file.csi.azure.com\
|
|
type: DirectoryOrCreate
|
|
- name: azure-config
|
|
hostPath:
|
|
path: C:\k
|
|
type: Directory
|
|
{{- end -}}
|