Skip to content

Commit

Permalink
Split resource definitions for:
Browse files Browse the repository at this point in the history
- driver on node
- driver-registrar on node
- external-provisioner (controller process, but currently runs per node)
  • Loading branch information
soenkeliebau committed Jul 5, 2023
1 parent 8613ddd commit 8fb7fce
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 12 deletions.
8 changes: 4 additions & 4 deletions deploy/helm/secret-operator/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
resources:
{{ .Values.node.resources | toYaml | nindent 12 }}
{{ .Values.node.driver.resources | toYaml | nindent 12 }}
env:
- name: CSI_ENDPOINT
value: /csi/csi.sock
Expand All @@ -57,7 +57,7 @@ spec:
image: "{{ .Values.csiProvisioner.image.repository }}:{{ .Values.csiProvisioner.image.tag }}"
imagePullPolicy: {{ .Values.csiProvisioner.image.pullPolicy }}
resources:
{ { .Values.node.resources | toYaml | nindent 12 } }
{{ .Values.controller.externalProvisioner.resources | toYaml | nindent 12 }}
args:
- --csi-address=/csi/csi.sock
- --feature-gates=Topology=true
Expand All @@ -69,7 +69,7 @@ spec:
image: "{{ .Values.csiNodeDriverRegistrar.image.repository }}:{{ .Values.csiNodeDriverRegistrar.image.tag }}"
imagePullPolicy: {{ .Values.csiNodeDriverRegistrar.image.pullPolicy }}
resources:
{{ .Values.node.resources | toYaml | nindent 12 }}
{{ .Values.node.driverRegistrar.resources | toYaml | nindent 12 }}
args:
- --csi-address=/csi/csi.sock
- --kubelet-registration-path={{ .Values.kubeletDir }}/plugins/secrets.stackable.tech/csi.sock
Expand All @@ -88,7 +88,7 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
resources:
{{ .Values.node.resources | toYaml | nindent 12 }}
{{ .Values.node.driver.resources | toYaml | nindent 12 }}
command:
- /bin/bash
- -euo
Expand Down
39 changes: 31 additions & 8 deletions deploy/helm/secret-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,38 @@ securityContext:
# runAsNonRoot: true
# runAsUser: 1000

controller:
externalProvisioner:
resources:
# Resource requests and limits for the external-provisioner container
# Please note: currently this is rolled out per node, but that may change
# in the future.
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi

node:
resources:
# Resource limits that are applied to the daemonset deployed by this helm chart
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
driver:
resources:
# Resource requests and limits for the per node driver container
limits:
cpu: 200m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
driverRegistrar:
resources:
# Resource requests and limits for the container running the registrar component per node
limits:
cpu: 300m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi

nodeSelector: {}

Expand Down

0 comments on commit 8fb7fce

Please sign in to comment.