Skip to content

Commit 8943c53

Browse files
authored
Merge pull request #8 from linuxfoundation/asherman/helm-resources
add resource and replica support
2 parents eec49d0 + 3c3b6d0 commit 8943c53

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

charts/lfx-v2-access-check/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ apiVersion: v2
55
name: lfx-v2-access-check
66
description: LFX Platform V2 Access Check Service chart
77
type: application
8-
version: 0.2.4
8+
version: 0.2.5
99
appVersion: "0.1.0"

charts/lfx-v2-access-check/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ spec:
3838
value: "{{ .Values.nats.url }}"
3939
- name: JWKS_URL
4040
value: "{{ .Values.heimdall.jwks_url }}"
41+
{{- if .Values.app.resources }}
42+
resources:
43+
{{- toYaml .Values.app.resources | nindent 12 }}
44+
{{- end }}
4145
livenessProbe:
4246
httpGet:
4347
path: /livez

charts/lfx-v2-access-check/values.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright The Linux Foundation and each contributor to LFX.
22
# SPDX-License-Identifier: MIT
33
---
4-
replicaCount: 1
4+
replicaCount: 3
55

66
lfx:
77
domain: k8s.orb.local
@@ -24,6 +24,15 @@ app:
2424
audience: "lfx-v2-access-check"
2525
issuer: "heimdall"
2626

27+
# Resource limits and requests
28+
resources:
29+
limits:
30+
cpu: 500m
31+
memory: 512Mi
32+
requests:
33+
cpu: 100m
34+
memory: 128Mi
35+
2736
# HTTP routing configuration
2837
traefik:
2938
enabled: true

0 commit comments

Comments
 (0)