Skip to content

Commit 4594190

Browse files
committed
🚀 [cicd] : CD 워크플로우 릴리즈 k8s 배포 추가
1 parent 2e64d85 commit 4594190

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

taskflow.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: taskflow-front
5+
annotations:
6+
service.beta.kubernetes.io/openstack-internal-load-balancer: 'false'
7+
loadbalancer.ke.kakaocloud.com/load-balancer-type: 'ALB'
8+
loadbalancer.openstack.org/default-tls-container-ref: 'https://key-manager.kr-central-2.kakaoi.io/v1/secrets/69d8713f-192c-4bf1-8677-da9abc4b6447'
9+
spec:
10+
selector:
11+
app: taskflow-front
12+
ports:
13+
- protocol: TCP
14+
port: 443
15+
targetPort: 80
16+
type: LoadBalancer
17+
---
18+
apiVersion: apps/v1
19+
kind: Deployment
20+
metadata:
21+
name: taskflow-front
22+
labels:
23+
app: taskflow-front
24+
spec:
25+
replicas: 1
26+
strategy:
27+
type: RollingUpdate
28+
rollingUpdate:
29+
maxSurge: 1
30+
maxUnavailable: 0
31+
selector:
32+
matchLabels:
33+
app: taskflow-front
34+
template:
35+
metadata:
36+
labels:
37+
app: taskflow-front
38+
spec:
39+
containers:
40+
- name: taskflow-front
41+
image: clap.kr-central-2.kcr.dev/taskflow/taskflow-front:${IMAGE_TAG}
42+
imagePullPolicy: Always
43+
command: ["nginx", "-g", "daemon off;"]
44+
env:
45+
- name: TZ
46+
value: "Asia/Seoul"
47+
ports:
48+
- containerPort: 80
49+
restartPolicy: Always
50+
nodeSelector:
51+
label: "front"
52+
imagePullSecrets:
53+
- name: kc-cr-secret

0 commit comments

Comments
 (0)