FEAT(config): add dev environment configuration

- Add development environment settings
- Configure dev-specific resources
This commit is contained in:
2025-12-03 14:37:00 +09:00
parent 0109ca4137
commit 1a3011f570
5 changed files with 59 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: portfolio-app
labels:
environment: development
spec:
replicas: 1
template:
spec:
containers:
- name: portfolio-app
resources:
requests:
memory: "84Mi"
cpu: "140m"
limits:
memory: "161Mi"
cpu: "280m"

View File

@@ -0,0 +1,20 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: portfolio-dev
resources:
- ../../base
- resourcequota.yaml
- namespace.yaml
commonLabels:
environment: development
# 이미지 태그 설정 (dev 브랜치 사용 시)
images:
- name: ghcr.io/mayne0213/portfolio
newTag: main-sha-69b3fc9deb45c82ac19120458829d940f1f7a498
patchesStrategicMerge:
- deployment-patch.yaml

View File

@@ -0,0 +1,7 @@
apiVersion: v1
kind: Namespace
metadata:
name: portfolio-dev
labels:
environment: development
app: portfolio

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: ResourceQuota
metadata:
name: portfolio-dev-quota
namespace: portfolio-dev
spec:
hard:
requests.memory: "525Mi"
requests.cpu: "840m"
limits.memory: "840Mi"
limits.cpu: "1680m"
pods: "6"

View File

@@ -13,7 +13,7 @@ commonLabels:
# 이미지 태그 설정 # 이미지 태그 설정
images: images:
- name: ghcr.io/mayne0213/portfolio - name: ghcr.io/mayne0213/portfolio
newTag: main-sha-debc5436c3c92dd2dbcaf1c42a1e76bba8c868f6 newTag: main-sha-bdc4a16c37a84acbe347e0ccfd74f1f65286a86b
patchesStrategicMerge: patchesStrategicMerge:
- deployment-patch.yaml - deployment-patch.yaml