Skip to content

Commit

Permalink
Add a low profile overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewballantyne committed May 22, 2024
1 parent cd93b29 commit 8bdf0cf
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
30 changes: 30 additions & 0 deletions manifests/overlays/lowProfile/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# dashboard container smaller
- op: replace
path: /spec/template/spec/containers/0/resources/requests/cpu
value: 100m
- op: replace
path: /spec/template/spec/containers/0/resources/requests/memory
value: 250Mi
- op: replace
path: /spec/template/spec/containers/0/resources/limits/cpu
value: 200m
- op: replace
path: /spec/template/spec/containers/0/resources/limits/memory
value: 500Mi
# oauth proxy container smaller
- op: replace
path: /spec/template/spec/containers/1/resources/requests/cpu
value: 100m
- op: replace
path: /spec/template/spec/containers/1/resources/requests/memory
value: 250Mi
- op: replace
path: /spec/template/spec/containers/1/resources/limits/cpu
value: 200m
- op: replace
path: /spec/template/spec/containers/1/resources/limits/memory
value: 500Mi
# 1 replica
- op: replace
path: /spec/replicas
value: 1
11 changes: 11 additions & 0 deletions manifests/overlays/lowProfile/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base
patchesJson6902:
- path: deployment.yaml
target:
group: apps
version: v1
kind: Deployment
name: odh-dashboard

0 comments on commit 8bdf0cf

Please sign in to comment.