Skip to content

Commit 05f6758

Browse files
committed
Allow to configure oidc nginx container resources
Signed-off-by: Marco Franssen <marco.franssen@philips.com>
1 parent 740aa00 commit 05f6758

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

charts/spire/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ Kubernetes: `>=1.21.0-0`
8989
| oidc.insecureScheme.nginx.image.registry | string | `"docker.io"` | |
9090
| oidc.insecureScheme.nginx.image.repository | string | `"nginx"` | |
9191
| oidc.insecureScheme.nginx.image.version | string | `"1.23.2-alpine"` | |
92+
| oidc.insecureScheme.nginx.resources | object | `{}` | |
9293
| oidc.nodeSelector."kubernetes.io/arch" | string | `"amd64"` | |
9394
| oidc.podAnnotations | object | `{}` | |
9495
| oidc.podSecurityContext | object | `{}` | |

charts/spire/templates/oidc-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ spec:
8787
mountPath: /etc/nginx/templates/default.conf.template
8888
subPath: default.conf.template
8989
readOnly: true
90+
resources:
91+
{{- toYaml .Values.oidc.insecureScheme.nginx.resources | nindent 12 }}
9092
{{- end }}
9193
volumes:
9294
- name: spiffe-workload-api

charts/spire/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,17 @@ oidc:
214214
# repository: chainguard/nginx
215215
# pullPolicy: IfNotPresent
216216
# version: "1.23.2"
217+
resources: {}
218+
# We usually recommend not to specify default resources and to leave this as a conscious
219+
# choice for the user. This also increases chances charts run on environments with little
220+
# resources, such as Minikube. If you do want to specify resources, uncomment the following
221+
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
222+
# requests:
223+
# cpu: 50m
224+
# memory: 32Mi
225+
# limits:
226+
# cpu: 100m
227+
# memory: 64Mi
217228

218229
config:
219230
logLevel: info

0 commit comments

Comments
 (0)