From 53d49cd3dc02ee76e8632e2132f4da8aa443c583 Mon Sep 17 00:00:00 2001 From: gitea_admin Date: Fri, 6 Feb 2026 17:29:31 +0000 Subject: [PATCH] production overlays --- overlays/prod/kustomization.yaml | 66 ++++++++++++++++++++++++++++++++ overlays/prod/namespace.yaml | 7 ++++ 2 files changed, 73 insertions(+) create mode 100644 overlays/prod/kustomization.yaml create mode 100644 overlays/prod/namespace.yaml diff --git a/overlays/prod/kustomization.yaml b/overlays/prod/kustomization.yaml new file mode 100644 index 0000000..59ea3bd --- /dev/null +++ b/overlays/prod/kustomization.yaml @@ -0,0 +1,66 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: inventory + +bases: + - ../../base/mysql + - ../../base/backend + - ../../base/frontend + +# Image tags (updated by CI/CD) +images: + - name: gitea.example.com/inventory/backend + newTag: main-abc1234 # CI/CD will update this + - name: gitea.example.com/inventory/frontend + newTag: main-abc1234 # CI/CD will update this + +# Replica counts for production +replicas: + - name: backend + count: 3 + - name: frontend + count: 3 + +# Resource adjustments for production +patches: + - patch: |- + apiVersion: apps/v1 + kind: Deployment + metadata: + name: backend + spec: + template: + spec: + containers: + - name: backend + resources: + requests: + memory: "256Mi" + cpu: "200m" + limits: + memory: "512Mi" + cpu: "400m" + target: + kind: Deployment + name: backend + - patch: |- + apiVersion: apps/v1 + kind: Deployment + metadata: + name: frontend + spec: + template: + spec: + containers: + - name: frontend + resources: + requests: + memory: "128Mi" + cpu: "100m" + limits: + memory: "256Mi" + cpu: "200m" + target: + kind: Deployment + name: frontend diff --git a/overlays/prod/namespace.yaml b/overlays/prod/namespace.yaml new file mode 100644 index 0000000..a3d8a57 --- /dev/null +++ b/overlays/prod/namespace.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: inventory + labels: + name: inventory + environment: production