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: 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"
|
||||||
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: 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
|
||||||
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: portfolio-dev
|
||||||
|
labels:
|
||||||
|
environment: development
|
||||||
|
app: portfolio
|
||||||
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: portfolio-dev-quota
|
||||||
|
namespace: portfolio-dev
|
||||||
|
spec:
|
||||||
|
hard:
|
||||||
|
requests.memory: "525Mi"
|
||||||
|
requests.cpu: "840m"
|
||||||
|
limits.memory: "840Mi"
|
||||||
|
limits.cpu: "1680m"
|
||||||
|
pods: "6"
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user