FEAT(config): add dev environment configuration
- Add development environment settings - Configure dev-specific resources
This commit is contained in:
19
deploy/k8s/overlays/dev/deployment-patch.yaml
Normal file
19
deploy/k8s/overlays/dev/deployment-patch.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: todo-app
|
||||
labels:
|
||||
environment: development
|
||||
spec:
|
||||
replicas: 1
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: todo-app
|
||||
resources:
|
||||
requests:
|
||||
memory: "84Mi"
|
||||
cpu: "35m"
|
||||
limits:
|
||||
memory: "161Mi"
|
||||
cpu: "105m"
|
||||
20
deploy/k8s/overlays/dev/kustomization.yaml
Normal file
20
deploy/k8s/overlays/dev/kustomization.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
namespace: todo-dev
|
||||
|
||||
resources:
|
||||
- ../../base
|
||||
- resourcequota.yaml
|
||||
- namespace.yaml
|
||||
|
||||
commonLabels:
|
||||
environment: development
|
||||
|
||||
# 이미지 태그 설정 (dev 브랜치 사용 시)
|
||||
images:
|
||||
- name: ghcr.io/mayne0213/todo
|
||||
newTag: main-sha-69b3fc9deb45c82ac19120458829d940f1f7a498
|
||||
|
||||
patchesStrategicMerge:
|
||||
- deployment-patch.yaml
|
||||
7
deploy/k8s/overlays/dev/namespace.yaml
Normal file
7
deploy/k8s/overlays/dev/namespace.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: todo-dev
|
||||
labels:
|
||||
environment: development
|
||||
app: todo
|
||||
12
deploy/k8s/overlays/dev/resourcequota.yaml
Normal file
12
deploy/k8s/overlays/dev/resourcequota.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: ResourceQuota
|
||||
metadata:
|
||||
name: todo-dev-quota
|
||||
namespace: todo-dev
|
||||
spec:
|
||||
hard:
|
||||
requests.memory: "525Mi"
|
||||
requests.cpu: "420m"
|
||||
limits.memory: "840Mi"
|
||||
limits.cpu: "840m"
|
||||
pods: "6"
|
||||
@@ -13,7 +13,7 @@ commonLabels:
|
||||
# 이미지 태그 설정
|
||||
images:
|
||||
- name: ghcr.io/mayne0213/todo
|
||||
newTag: main-sha-a4579253858f961119c6b478d8fed15761270af3
|
||||
newTag: main-sha-62157e0d1d7aef81d49a6df5dd5f8b3e3602c208
|
||||
|
||||
patchesStrategicMerge:
|
||||
- deployment-patch.yaml
|
||||
|
||||
Reference in New Issue
Block a user