added manifest kubernetes base and overlays for production

This commit is contained in:
Syifa 2025-10-23 16:19:08 +07:00
parent 7dab2d908b
commit 7eec05482d
2 changed files with 43 additions and 0 deletions

View File

@ -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

View File

@ -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