-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.yaml
71 lines (71 loc) · 1.71 KB
/
deploy.yaml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
apiVersion: apps/v1
kind: Deployment
metadata:
name: tnt
labels:
product: tnt
spec:
replicas: 1
selector:
matchLabels:
product: tnt
template:
metadata:
labels:
product: tnt
spec:
containers:
- name: tnt
image: tnt:2.0.6
imagePullPolicy: IfNotPresent
env:
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: tnt-config
key: db_host
- name: DB_USER
valueFrom:
configMapKeyRef:
name: tnt-config
key: db_user
- name: DB_PASSWORD
valueFrom:
configMapKeyRef:
name: tnt-config
key: db_password
- name: GITHUB_TOKEN
valueFrom:
configMapKeyRef:
name: tnt-config
key: github_token
- name: KAFKA_BROKER_LIST
valueFrom:
configMapKeyRef:
name: tnt-config
key: kafka_broker_list
- name: KAFKA_TP_TOPIC
valueFrom:
configMapKeyRef:
name: tnt-config
key: kafka_tp_topic
- name: RALLY_URL
valueFrom:
configMapKeyRef:
name: tnt-config
key: rally_url
- name: TNT_DOC_LINK
valueFrom:
configMapKeyRef:
name: tnt-config
key: tnt_doc_link
- name: ENCRYPT_KEY
valueFrom:
configMapKeyRef:
name: tnt-config
key: tnt_encrypt_key
- name: GITHUB_URL
valueFrom:
configMapKeyRef:
name: tnt-config
key: github_api_url