63 lines
1.7 KiB
YAML
63 lines
1.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: ${RELEASE_NAME}
|
|
labels:
|
|
app.kubernetes.io/name: ${RELEASE_NAME}
|
|
app.kubernetes.io/managed-by: "jenkins"
|
|
watcher.project: "16663cf7-1571-4a29-84a0-ea362c39922e"
|
|
watcher.nodeId: "2d1251be-816e-424b-9b84-8dfed9328bc0"
|
|
watcher.role: "agent"
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: ${RELEASE_NAME}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: ${RELEASE_NAME}
|
|
app.kubernetes.io/managed-by: "jenkins"
|
|
watcher.project: "16663cf7-1571-4a29-84a0-ea362c39922e"
|
|
watcher.nodeId: "2d1251be-816e-424b-9b84-8dfed9328bc0"
|
|
watcher.role: "agent"
|
|
watcher.branch: ${BRANCH_NAME}
|
|
annotations:
|
|
watcher.enabled: "true"
|
|
spec:
|
|
|
|
imagePullSecrets:
|
|
- name: cr-pull
|
|
|
|
containers:
|
|
- name: app
|
|
image: ${FULL_IMAGE}
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- name: http
|
|
containerPort: 80
|
|
env:
|
|
- name: TZ
|
|
value: "Asia/Seoul"
|
|
# TCP probe — Agent(/) MCP(/mcp) 구분 없이 포트 오픈 여부만 확인
|
|
readinessProbe:
|
|
tcpSocket:
|
|
port: http
|
|
initialDelaySeconds: 3
|
|
periodSeconds: 5
|
|
timeoutSeconds: 2
|
|
failureThreshold: 6
|
|
livenessProbe:
|
|
tcpSocket:
|
|
port: http
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
timeoutSeconds: 2
|
|
failureThreshold: 6
|
|
resources:
|
|
requests:
|
|
cpu: "50m"
|
|
memory: "128Mi"
|
|
limits:
|
|
cpu: "500m"
|
|
memory: "1Gi" |