From e37bd8821cc58a539e5159098baa3d5bd9dd813e Mon Sep 17 00:00:00 2001 From: "jona.klaess" Date: Tue, 16 Jun 2026 15:26:20 +0200 Subject: [PATCH] add patches for resources --- teastore/auth-patch.yaml | 16 ++++++++++++++++ teastore/db-patch.yaml | 16 ++++++++++++++++ teastore/image-patch.yaml | 16 ++++++++++++++++ teastore/kustomization.yaml | 9 ++++++++- teastore/persistence-patch.yaml | 16 ++++++++++++++++ teastore/recommender-patch.yaml | 16 ++++++++++++++++ teastore/registry-patch.yaml | 16 ++++++++++++++++ teastore/webui-patch.yaml | 16 ++++++++++++++++ 8 files changed, 120 insertions(+), 1 deletion(-) create mode 100644 teastore/auth-patch.yaml create mode 100644 teastore/db-patch.yaml create mode 100644 teastore/image-patch.yaml create mode 100644 teastore/persistence-patch.yaml create mode 100644 teastore/recommender-patch.yaml create mode 100644 teastore/registry-patch.yaml create mode 100644 teastore/webui-patch.yaml diff --git a/teastore/auth-patch.yaml b/teastore/auth-patch.yaml new file mode 100644 index 0000000..b70a9d8 --- /dev/null +++ b/teastore/auth-patch.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: teastore-auth +spec: + template: + spec: + containers: + - name: teastore-auth + resources: + requests: + cpu: 20m + memory: 0.3Gi + limits: + cpu: 40m + memory: 0.5Gi \ No newline at end of file diff --git a/teastore/db-patch.yaml b/teastore/db-patch.yaml new file mode 100644 index 0000000..bd64b0f --- /dev/null +++ b/teastore/db-patch.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: teastore-db +spec: + template: + spec: + containers: + - name: teastore-db + resources: + requests: + cpu: 20m + memory: 0.1Gi + limits: + cpu: 50m + memory: 0.15Gi \ No newline at end of file diff --git a/teastore/image-patch.yaml b/teastore/image-patch.yaml new file mode 100644 index 0000000..6b61818 --- /dev/null +++ b/teastore/image-patch.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: teastore-image +spec: + template: + spec: + containers: + - name: teastore-image + resources: + requests: + cpu: 100m + memory: 0.3Gi + limits: + cpu: 300m + memory: 0.6Gi \ No newline at end of file diff --git a/teastore/kustomization.yaml b/teastore/kustomization.yaml index c47e5cf..10a59f9 100644 --- a/teastore/kustomization.yaml +++ b/teastore/kustomization.yaml @@ -19,4 +19,11 @@ patches: spec: ports: - port: 8080 - targetPort: 8080 \ No newline at end of file + targetPort: 8080 + - path: auth-patch.yaml + - path: db-patch.yaml + - path: image-patch.yaml + - path: persistence-patch.yaml + - path: recommender-patch.yaml + - path: registry-patch.yaml + - path: webui-patch.yaml \ No newline at end of file diff --git a/teastore/persistence-patch.yaml b/teastore/persistence-patch.yaml new file mode 100644 index 0000000..27c0737 --- /dev/null +++ b/teastore/persistence-patch.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: teastore-persistence +spec: + template: + spec: + containers: + - name: teastore-persistence + resources: + requests: + cpu: 100m + memory: 0.3Gi + limits: + cpu: 200m + memory: 0.6Gi \ No newline at end of file diff --git a/teastore/recommender-patch.yaml b/teastore/recommender-patch.yaml new file mode 100644 index 0000000..d9feb27 --- /dev/null +++ b/teastore/recommender-patch.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: teastore-recommender +spec: + template: + spec: + containers: + - name: teastore-reecommender + resources: + requests: + cpu: 20m + memory: 0.3Gi + limits: + cpu: 40m + memory: 0.5Gi \ No newline at end of file diff --git a/teastore/registry-patch.yaml b/teastore/registry-patch.yaml new file mode 100644 index 0000000..577d637 --- /dev/null +++ b/teastore/registry-patch.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: teastore-registry +spec: + template: + spec: + containers: + - name: teastore-registry + resources: + requests: + cpu: 50m + memory: 0.2Gi + limits: + cpu: 100m + memory: 0.3Gi \ No newline at end of file diff --git a/teastore/webui-patch.yaml b/teastore/webui-patch.yaml new file mode 100644 index 0000000..4d2cda8 --- /dev/null +++ b/teastore/webui-patch.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: teastore-webui +spec: + template: + spec: + containers: + - name: teastore-webui + resources: + requests: + cpu: 100m + memory: 0.3Gi + limits: + cpu: 300m + memory: 0.65Gi \ No newline at end of file