128 lines
3.7 KiB
YAML
Executable File
128 lines
3.7 KiB
YAML
Executable File
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: csi-azurefile-controller
|
|
namespace: {{ .Release.Namespace }}
|
|
{{ include "azurefile.labels" . | indent 2 }}
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: csi-azurefile-controller
|
|
template:
|
|
metadata:
|
|
{{ include "azurefile.labels" . | indent 6 }}
|
|
app: csi-azurefile-controller
|
|
spec:
|
|
serviceAccountName: csi-azurefile-controller-sa
|
|
nodeSelector:
|
|
kubernetes.io/os: linux
|
|
priorityClassName: system-cluster-critical
|
|
containers:
|
|
- name: csi-provisioner
|
|
image: quay.io/k8scsi/csi-provisioner:v1.0.1
|
|
args:
|
|
- "--provisioner=file.csi.azure.com"
|
|
- "--csi-address=$(ADDRESS)"
|
|
- "--connection-timeout=15s"
|
|
env:
|
|
- name: ADDRESS
|
|
value: /csi/csi.sock
|
|
imagePullPolicy: Always
|
|
volumeMounts:
|
|
- mountPath: /csi
|
|
name: socket-dir
|
|
- name: csi-attacher
|
|
image: quay.io/k8scsi/csi-attacher:v1.0.1
|
|
args:
|
|
- --v=5
|
|
- --csi-address=$(ADDRESS)
|
|
- --timeout=120s
|
|
env:
|
|
- name: ADDRESS
|
|
value: /csi/csi.sock
|
|
imagePullPolicy: Always
|
|
volumeMounts:
|
|
- mountPath: /csi
|
|
name: socket-dir
|
|
- name: cluster-driver-registrar
|
|
image: quay.io/k8scsi/csi-cluster-driver-registrar:v1.0.1
|
|
args:
|
|
- --csi-address=$(ADDRESS)
|
|
- --driver-requires-attachment=true
|
|
- --v=5
|
|
env:
|
|
- name: ADDRESS
|
|
value: /csi/csi.sock
|
|
volumeMounts:
|
|
- name: socket-dir
|
|
mountPath: /csi
|
|
- name: liveness-probe
|
|
image: quay.io/k8scsi/livenessprobe:v1.1.0
|
|
args:
|
|
- --csi-address=/csi/csi.sock
|
|
- --connection-timeout=3s
|
|
- --health-port=9702
|
|
volumeMounts:
|
|
- name: socket-dir
|
|
mountPath: /csi
|
|
- name: azurefile
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
args:
|
|
- "--v=5"
|
|
- "--endpoint=$(CSI_ENDPOINT)"
|
|
- "--nodeid=$(KUBE_NODE_NAME)"
|
|
ports:
|
|
- containerPort: 9702
|
|
name: healthz
|
|
protocol: TCP
|
|
- containerPort: 10252
|
|
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.pullPolicy }}
|
|
volumeMounts:
|
|
- mountPath: /csi
|
|
name: socket-dir
|
|
- mountPath: /etc/kubernetes/
|
|
name: azure-cred
|
|
- mountPath: /var/lib/waagent/ManagedIdentity-Settings
|
|
readOnly: true
|
|
name: msi
|
|
volumes:
|
|
- name: socket-dir
|
|
emptyDir: {}
|
|
- name: azure-cred
|
|
hostPath:
|
|
path: /etc/kubernetes/
|
|
type: Directory
|
|
- name: msi
|
|
hostPath:
|
|
path: /var/lib/waagent/ManagedIdentity-Settings
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: csi-azurefile-controller
|
|
namespace: {{ .Release.Namespace }}
|
|
{{ include "azurefile.labels" . | indent 2 }}
|
|
spec:
|
|
selector:
|
|
app: csi-azurefile-controller
|
|
ports:
|
|
- port: 10252
|
|
targetPort: 10252
|
|
type: ClusterIP
|