50437acf16
Since remote tasks might get a bit longer to get scheduled, it's reasonable to increase this timeout. Specifically, we faced an issue with a `DeleteVolume` action timing out over and over since it was running a bit over the default timeout.
92 lines
2.8 KiB
YAML
92 lines
2.8 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "rawfile-csi.fullname" . }}-controller
|
|
labels:
|
|
{{- include "rawfile-csi.labels" . | nindent 4 }}
|
|
component: controller
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
{{- include "rawfile-csi.selectorLabels" . | nindent 4 }}
|
|
component: controller
|
|
clusterIP: None
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: {{ include "rawfile-csi.fullname" . }}-controller
|
|
spec:
|
|
replicas: 1
|
|
serviceName: {{ include "rawfile-csi.fullname" . }}
|
|
selector:
|
|
matchLabels: &selectorLabels
|
|
{{- include "rawfile-csi.selectorLabels" . | nindent 6 }}
|
|
component: controller
|
|
template:
|
|
metadata:
|
|
labels: *selectorLabels
|
|
spec:
|
|
serviceAccount: {{ include "rawfile-csi.fullname" . }}-driver
|
|
priorityClassName: system-cluster-critical
|
|
tolerations:
|
|
- key: "node-role.kubernetes.io/master"
|
|
operator: Equal
|
|
value: "true"
|
|
effect: NoSchedule
|
|
volumes:
|
|
- name: socket-dir
|
|
emptyDir: {}
|
|
containers:
|
|
- name: csi-driver
|
|
image: "{{ .Values.controller.image.repository }}:{{ .Values.controller.image.tag }}"
|
|
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
|
|
args:
|
|
- csi-driver
|
|
- --disable-metrics
|
|
env:
|
|
- name: PROVISIONER_NAME
|
|
value: "{{ .Values.provisionerName }}"
|
|
- name: CSI_ENDPOINT
|
|
value: unix:///csi/csi.sock
|
|
- name: IMAGE_REPOSITORY
|
|
value: "{{ .Values.controller.image.repository }}"
|
|
{{- if regexMatch "^.*-ci$" .Values.controller.image.tag }}
|
|
- name: IMAGE_TAG
|
|
value: "{{ .Values.controller.image.tag }}"
|
|
{{- end }}
|
|
volumeMounts:
|
|
- name: socket-dir
|
|
mountPath: /csi
|
|
ports:
|
|
- name: csi-probe
|
|
containerPort: 9808
|
|
resources:
|
|
{{- toYaml .Values.controller.resources | nindent 12 }}
|
|
- name: external-provisioner
|
|
image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2
|
|
imagePullPolicy: IfNotPresent
|
|
args:
|
|
- "--csi-address=$(ADDRESS)"
|
|
- "--feature-gates=Topology=true"
|
|
- "--strict-topology"
|
|
- "--timeout=120s"
|
|
env:
|
|
- name: ADDRESS
|
|
value: /csi/csi.sock
|
|
volumeMounts:
|
|
- name: socket-dir
|
|
mountPath: /csi
|
|
- name: external-resizer
|
|
image: k8s.gcr.io/sig-storage/csi-resizer:v1.2.0
|
|
imagePullPolicy: IfNotPresent
|
|
args:
|
|
- "--csi-address=$(ADDRESS)"
|
|
- "--handle-volume-inuse-error=false"
|
|
env:
|
|
- name: ADDRESS
|
|
value: /csi/csi.sock
|
|
volumeMounts:
|
|
- name: socket-dir
|
|
mountPath: /csi
|