added manifest kubernetes base and overlays for staging
This commit is contained in:
parent
6662ec7e9e
commit
2253faa99f
|
|
@ -0,0 +1,13 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- ../../k8s
|
||||||
|
|
||||||
|
namespace: intern-workspace
|
||||||
|
namePrefix: staging-
|
||||||
|
commonLabels:
|
||||||
|
environment: staging
|
||||||
|
|
||||||
|
patchesStrategicMerge:
|
||||||
|
- patch-deployment.yaml
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
# ==========================
|
||||||
|
# BACKEND PATCH
|
||||||
|
# ==========================
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: backend-app-syifa
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: backend
|
||||||
|
image: docker.io/syifamaulidya/backend-app:staging # <-- Jenkins nanti ganti otomatis ke vX
|
||||||
|
|
||||||
|
---
|
||||||
|
# ==========================
|
||||||
|
# FRONTEND PATCH
|
||||||
|
# ==========================
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: frontend-app-syifa
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: frontend
|
||||||
|
image: docker.io/syifamaulidya/frontend-app:staging # <-- Jenkins juga ganti otomatis
|
||||||
Loading…
Reference in New Issue