From 7eec05482dbf7b88c187647e52e10a4a53a4d39c Mon Sep 17 00:00:00 2001 From: Syifa Date: Thu, 23 Oct 2025 16:19:08 +0700 Subject: [PATCH] added manifest kubernetes base and overlays for production --- overlays/production/kustomization.yaml | 13 ++++++++++ overlays/production/patch-deployment.yaml | 30 +++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 overlays/production/kustomization.yaml create mode 100644 overlays/production/patch-deployment.yaml diff --git a/overlays/production/kustomization.yaml b/overlays/production/kustomization.yaml new file mode 100644 index 0000000..94e56b5 --- /dev/null +++ b/overlays/production/kustomization.yaml @@ -0,0 +1,13 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - ../../k8s + +namespace: intern-workspace +namePrefix: prod- +commonLabels: + environment: production + +patchesStrategicMerge: + - patch-deployment.yaml diff --git a/overlays/production/patch-deployment.yaml b/overlays/production/patch-deployment.yaml new file mode 100644 index 0000000..e19f00a --- /dev/null +++ b/overlays/production/patch-deployment.yaml @@ -0,0 +1,30 @@ +# ========================== +# BACKEND PATCH +# ========================== +apiVersion: apps/v1 +kind: Deployment +metadata: + name: backend-app-syifa +spec: + replicas: 3 + template: + spec: + containers: + - name: backend + image: docker.io/syifamaulidya/backend-app:production # <-- Jenkins nanti ganti otomatis ke vX + +--- +# ========================== +# FRONTEND PATCH +# ========================== +apiVersion: apps/v1 +kind: Deployment +metadata: + name: frontend-app-syifa +spec: + replicas: 3 + template: + spec: + containers: + - name: frontend + image: docker.io/syifamaulidya/frontend-app:production # <-- Jenkins juga ganti otomatis \ No newline at end of file