-
Notifications
You must be signed in to change notification settings - Fork 9
/
deploy.yaml
67 lines (62 loc) · 1.48 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
apiVersion: apps/v1
kind: Deployment
metadata:
name: am-webhook
namespace: ycap
labels:
app: am-webhook
spec:
replicas: 2
selector:
matchLabels:
app: am-webhook
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 50%
maxSurge: 1
template:
metadata:
labels:
app: am-webhook
spec:
terminationGracePeriodSeconds: 30
# imagePullSecrets:
# - name: admin.regkey
containers:
- name: am-webhook
image: zhiminwen/am-webhook:1.0.0@sha256:b04b263555bda4efd650993891d1bfe02548e6d5ddb492c2da127e755d188d3b
imagePullPolicy: IfNotPresent
env:
- name: PORT
value: "80"
- name: TWILIO_ACCOUNT
value: YOUR_ACCOUNT
- name: TWILIO_TOKEN
value: YOUR_ACCOUNT
- name: TWILIO_FROM
value: "YouNumber"
- name: GMAIL_FROM
value: "YourEmailID@gmail.com"
livenessProbe:
httpGet:
path: /healthz
port: 80
readinessProbe:
httpGet:
path: /healthz
port: 80
resources:
limits:
cpu: 10m
memory: 30Mi
requests:
cpu: 10m
memory: 30Mi
volumeMounts:
- name: config-volume
mountPath: /amhook/config
volumes:
- name: config-volume
configMap:
name: am-webhook-config