forked from TaskFlow-CLAP/TaskFlow-Server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskflow.yaml
More file actions
55 lines (55 loc) · 1.19 KB
/
taskflow.yaml
File metadata and controls
55 lines (55 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
apiVersion: v1
kind: Service
metadata:
name: taskflow-back
annotations:
service.beta.kubernetes.io/openstack-internal-load-balancer: 'false'
spec:
selector:
app: taskflow-back
ports:
- protocol: TCP
port: 9090
targetPort: 9090
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: taskflow-back
labels:
app: taskflow-back
spec:
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
selector:
matchLabels:
app: taskflow-back
template:
metadata:
labels:
app: taskflow-back
spec:
containers:
- name: taskflow
image: clap.kr-central-2.kcr.dev/taskflow/taskflow-server:${IMAGE_TAG}
imagePullPolicy: Always
command: [ "java", "-jar", "app.jar" ]
args: [ "--spring.profiles.active=prod" ]
env:
- name: TZ
value: "Asia/Seoul"
envFrom:
- secretRef:
name: taskflow-back
ports:
- containerPort: 9090
restartPolicy: Always
nodeSelector:
label: "back"
imagePullSecrets:
- name: kc-cr-secret