updated file for kustomization staging
This commit is contained in:
parent
73e6005c68
commit
7070583df0
|
|
@ -1,13 +1,32 @@
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
# ==========================
|
||||||
kind: Kustomization
|
# PATCH UNTUK BACKEND
|
||||||
|
# ==========================
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: backend-app-syifa
|
||||||
|
namespace: intern-workspace
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: backend
|
||||||
|
image: docker.io/syifamaulidya/backend-app:staging # Jenkins akan update ke vX
|
||||||
|
|
||||||
resources:
|
---
|
||||||
- ../../k8s
|
# ==========================
|
||||||
|
# PATCH UNTUK FRONTEND
|
||||||
namespace: intern-workspace
|
# ==========================
|
||||||
namePrefix: staging-
|
apiVersion: apps/v1
|
||||||
commonLabels:
|
kind: Deployment
|
||||||
environment: staging
|
metadata:
|
||||||
|
name: frontend-app-syifa
|
||||||
patchesStrategicMerge:
|
namespace: intern-workspace
|
||||||
- patch-deployment.yaml
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: frontend
|
||||||
|
image: docker.io/syifamaulidya/frontend-app:staging # Jenkins akan update ke vX
|
||||||
Loading…
Reference in New Issue