46bd3565a0
This way we can run tasks with `IfNotPresent` and be sure it works as intended.
67 lines
2.0 KiB
YAML
67 lines
2.0 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 }}
|
|
env:
|
|
- name: CSI_ENDPOINT
|
|
value: unix:///csi/csi.sock
|
|
- name: IMAGE_REPOSITORY
|
|
value: "{{ .Values.controller.image.repository }}"
|
|
volumeMounts:
|
|
- name: socket-dir
|
|
mountPath: /csi
|
|
resources:
|
|
{{- toYaml .Values.controller.resources | nindent 12 }}
|
|
- name: csi-provisioner
|
|
image: quay.io/k8scsi/csi-provisioner:v1.6.0
|
|
imagePullPolicy: IfNotPresent
|
|
args:
|
|
- "--csi-address=$(ADDRESS)"
|
|
- "--feature-gates=Topology=true"
|
|
- "--strict-topology"
|
|
env:
|
|
- name: ADDRESS
|
|
value: /csi/csi.sock
|
|
volumeMounts:
|
|
- name: socket-dir
|
|
mountPath: /csi
|