-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathk8s-deployment.yaml
52 lines (52 loc) · 1.36 KB
/
k8s-deployment.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
run: searchtelegrambotprod
name: searchtelegrambotprod
namespace: searchtelegram
spec:
replicas: 1
selector:
matchLabels:
run: searchtelegrambotprod
template:
metadata:
labels:
run: searchtelegrambotprod
spec:
containers:
- name: searchtelegrambotprod
image: daocloud.io/knarfeh/searchtelegram-bot
imagePullPolicy: IfNotPresent
env:
- name: OPENSHIFT_NODEJS_PORT
value: "80"
- name: OPENSHIFT_NODEJS_IP
value: "0.0.0.0"
- name: BOT_TOKEN
valueFrom:
secretKeyRef:
name: prodsearchtelegramsecret
key: TGBOTTOKEN
- name: WEBHOOK_DOMAIN
value: "searchtelegram.com"
- name: WEBHOOK_PATH
value: "/v1/tgbot_webhook"
- name: REDIS_HOST
value: "gryuint.nujeh.com"
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: st-var
key: REDIS_PORT
- name: ES_HOST_PORT
valueFrom:
configMapKeyRef:
name: st-var
key: ES_HOST_PORT
ports:
- containerPort: 80
protocol: TCP
imagePullSecrets:
- name: daocloud