-
Notifications
You must be signed in to change notification settings - Fork 2
/
deploy.yaml
38 lines (38 loc) · 1010 Bytes
/
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: wechat-mp-server
namespace: default
labels:
app: wechat-mp-server
spec:
replicas: 1
selector:
matchLabels:
app: wechat-mp-server
template:
metadata:
labels:
app: wechat-mp-server
spec:
containers:
- name: wechat-mp-server
image: {{.image_repo}}:{{.image_tag}}
ports:
- containerPort: {{.service_port}}
protocol: TCP
imagePullPolicy: Always
env:
- name: SENTRY.DSN
value: {{.sentry_dsn}}
- name: WECHAT.APPID
value: {{.wechat_appid}}
- name: WECHAT.APPSECRET
value: {{.wechat_appsecret}}
- name: WECHAT.TOKEN
value: {{.wechat_token}}
- name: WECHAT.ENCODINGAESKEY
value: {{.wechat_encodingaeskey}}
- name: HTTPENGINE.PORT
value: {{.service_port}}
restartPolicy: Always