feat: HTTP 서버로 전환 + Kaniko 이미지 빌드/K8s 배포 파이프라인 추가

This commit is contained in:
2026-09-04 14:17:52 +09:00
parent bf211ff7ec
commit c2b3d83d87
6 changed files with 148 additions and 4 deletions
+39
View File
@@ -0,0 +1,39 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: cstest
namespace: apps
spec:
replicas: 2
selector:
matchLabels:
app: cstest
template:
metadata:
labels:
app: cstest
spec:
containers:
- name: cstest
image: IMAGE_PLACEHOLDER
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 3
periodSeconds: 5
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
resources:
requests:
cpu: "50m"
memory: "128Mi"
limits:
cpu: "250m"
memory: "256Mi"
+18
View File
@@ -0,0 +1,18 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: cstest
namespace: apps
spec:
ingressClassName: traefik
rules:
- host: cstest.led.ectech.co.kr
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: cstest
port:
number: 8080
+11
View File
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: cstest
namespace: apps
spec:
selector:
app: cstest
ports:
- port: 8080
targetPort: 8080