183 lines
5.6 KiB
YAML
183 lines
5.6 KiB
YAML
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: csi-azurefile-controller
|
|
namespace: {{ .Release.Namespace }}
|
|
{{ include "azurefile.labels" . | indent 2 }}
|
|
spec:
|
|
replicas: {{ .Values.controller.replicas }}
|
|
selector:
|
|
matchLabels:
|
|
app: csi-azurefile-controller
|
|
template:
|
|
metadata:
|
|
{{ include "azurefile.labels" . | indent 6 }}
|
|
app: csi-azurefile-controller
|
|
spec:
|
|
hostNetwork: true # only required for MSI enabled cluster
|
|
serviceAccountName: csi-azurefile-controller-sa
|
|
nodeSelector:
|
|
kubernetes.io/os: linux
|
|
priorityClassName: system-cluster-critical
|
|
tolerations:
|
|
- key: "node-role.kubernetes.io/master"
|
|
operator: "Equal"
|
|
value: "true"
|
|
effect: "NoSchedule"
|
|
containers:
|
|
- name: csi-provisioner
|
|
image: "{{ .Values.image.csiProvisioner.repository }}:{{ .Values.image.csiProvisioner.tag }}"
|
|
args:
|
|
- "-v=5"
|
|
- "--provisioner=file.csi.azure.com"
|
|
- "--csi-address=$(ADDRESS)"
|
|
- "--connection-timeout=15s"
|
|
- "--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: 2
|
|
memory: 2Gi
|
|
requests:
|
|
cpu: 10m
|
|
memory: 20Mi
|
|
- name: csi-attacher
|
|
image: "{{ .Values.image.csiAttacher.repository }}:{{ .Values.image.csiAttacher.tag }}"
|
|
args:
|
|
- "-v=5"
|
|
- "-csi-address=$(ADDRESS)"
|
|
- "-timeout=120s"
|
|
- "-leader-election"
|
|
- "-leader-election-type=leases"
|
|
env:
|
|
- name: ADDRESS
|
|
value: /csi/csi.sock
|
|
imagePullPolicy: {{ .Values.image.csiAttacher.pullPolicy }}
|
|
volumeMounts:
|
|
- mountPath: /csi
|
|
name: socket-dir
|
|
resources:
|
|
limits:
|
|
cpu: 2
|
|
memory: 2Gi
|
|
requests:
|
|
cpu: 10m
|
|
memory: 20Mi
|
|
- name: csi-snapshotter
|
|
image: "{{ .Values.image.csiSnapshotter.repository }}:{{ .Values.image.csiSnapshotter.tag }}"
|
|
args:
|
|
- "-v=5"
|
|
- "-csi-address=$(ADDRESS)"
|
|
- "-leader-election"
|
|
env:
|
|
- name: ADDRESS
|
|
value: /csi/csi.sock
|
|
imagePullPolicy: {{ .Values.image.csiSnapshotter.pullPolicy }}
|
|
volumeMounts:
|
|
- name: socket-dir
|
|
mountPath: /csi
|
|
resources:
|
|
limits:
|
|
cpu: 2
|
|
memory: 2Gi
|
|
requests:
|
|
cpu: 10m
|
|
memory: 20Mi
|
|
- name: csi-resizer
|
|
image: "{{ .Values.image.csiResizer.repository }}:{{ .Values.image.csiResizer.tag }}"
|
|
args:
|
|
- "-csi-address=$(ADDRESS)"
|
|
- "-v=5"
|
|
- "-leader-election"
|
|
env:
|
|
- name: ADDRESS
|
|
value: /csi/csi.sock
|
|
imagePullPolicy: {{ .Values.image.csiResizer.pullPolicy }}
|
|
volumeMounts:
|
|
- name: socket-dir
|
|
mountPath: /csi
|
|
resources:
|
|
limits:
|
|
cpu: 2
|
|
memory: 2Gi
|
|
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=29612
|
|
- --v=5
|
|
imagePullPolicy: {{ .Values.image.livenessProbe.pullPolicy }}
|
|
volumeMounts:
|
|
- name: socket-dir
|
|
mountPath: /csi
|
|
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: 29612
|
|
name: healthz
|
|
protocol: TCP
|
|
- containerPort: 29614
|
|
name: metrics
|
|
protocol: TCP
|
|
livenessProbe:
|
|
failureThreshold: 5
|
|
httpGet:
|
|
path: /healthz
|
|
port: healthz
|
|
initialDelaySeconds: 30
|
|
timeoutSeconds: 10
|
|
periodSeconds: 30
|
|
env:
|
|
- name: AZURE_CREDENTIAL_FILE
|
|
value: "/etc/kubernetes/azure.json"
|
|
- name: CSI_ENDPOINT
|
|
value: unix:///csi/csi.sock
|
|
imagePullPolicy: {{ .Values.image.azurefile.pullPolicy }}
|
|
volumeMounts:
|
|
- mountPath: /csi
|
|
name: socket-dir
|
|
- mountPath: /etc/kubernetes/
|
|
name: azure-cred
|
|
- mountPath: /var/lib/waagent/ManagedIdentity-Settings
|
|
readOnly: true
|
|
name: msi
|
|
resources:
|
|
limits:
|
|
cpu: 2
|
|
memory: 2Gi
|
|
requests:
|
|
cpu: 10m
|
|
memory: 20Mi
|
|
volumes:
|
|
- name: socket-dir
|
|
emptyDir: {}
|
|
- name: azure-cred
|
|
hostPath:
|
|
path: /etc/kubernetes/
|
|
type: Directory
|
|
- name: msi
|
|
hostPath:
|
|
path: /var/lib/waagent/ManagedIdentity-Settings
|