Skip to content

Commit 4a97f8c

Browse files
committed
Add resource requests and limits to kube-rbac-proxy
Signed-off-by: Frederic Giloux <[email protected]>
1 parent e51c785 commit 4a97f8c

File tree

6 files changed

+42
-0
lines changed

6 files changed

+42
-0
lines changed

pkg/plugins/common/kustomize/v1/scaffolds/internal/templates/config/kdefault/manager_auth_proxy_patch.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ spec:
6565
- containerPort: 8443
6666
protocol: TCP
6767
name: https
68+
resources:
69+
limits:
70+
cpu: 500m
71+
memory: 128Mi
72+
requests:
73+
cpu: 5m
74+
memory: 64Mi
6875
{{- if not .ComponentConfig }}
6976
- name: manager
7077
args:

testdata/project-v3-addon/config/default/manager_auth_proxy_patch.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ spec:
2020
- containerPort: 8443
2121
protocol: TCP
2222
name: https
23+
resources:
24+
limits:
25+
cpu: 500m
26+
memory: 128Mi
27+
requests:
28+
cpu: 5m
29+
memory: 64Mi
2330
- name: manager
2431
args:
2532
- "--health-probe-bind-address=:8081"

testdata/project-v3-config/config/default/manager_auth_proxy_patch.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ spec:
2020
- containerPort: 8443
2121
protocol: TCP
2222
name: https
23+
resources:
24+
limits:
25+
cpu: 500m
26+
memory: 128Mi
27+
requests:
28+
cpu: 5m
29+
memory: 64Mi

testdata/project-v3-multigroup/config/default/manager_auth_proxy_patch.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ spec:
2020
- containerPort: 8443
2121
protocol: TCP
2222
name: https
23+
resources:
24+
limits:
25+
cpu: 500m
26+
memory: 128Mi
27+
requests:
28+
cpu: 5m
29+
memory: 64Mi
2330
- name: manager
2431
args:
2532
- "--health-probe-bind-address=:8081"

testdata/project-v3-v1beta1/config/default/manager_auth_proxy_patch.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ spec:
2020
- containerPort: 8443
2121
protocol: TCP
2222
name: https
23+
resources:
24+
limits:
25+
cpu: 500m
26+
memory: 128Mi
27+
requests:
28+
cpu: 5m
29+
memory: 64Mi
2330
- name: manager
2431
args:
2532
- "--health-probe-bind-address=:8081"

testdata/project-v3/config/default/manager_auth_proxy_patch.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ spec:
2020
- containerPort: 8443
2121
protocol: TCP
2222
name: https
23+
resources:
24+
limits:
25+
cpu: 500m
26+
memory: 128Mi
27+
requests:
28+
cpu: 5m
29+
memory: 64Mi
2330
- name: manager
2431
args:
2532
- "--health-probe-bind-address=:8081"

0 commit comments

Comments
 (0)