-
Notifications
You must be signed in to change notification settings - Fork 121
/
webhook-deployment.yaml
91 lines (77 loc) · 1.74 KB
/
webhook-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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: webhook-validator
namespace: sig-build
labels:
app: webhook-validator
spec:
replicas: 1
selector:
matchLabels:
app: webhook-validator
template:
metadata:
name: webhook-validator
namespace: sig-build
labels:
app: webhook-validator
spec:
containers:
- name: webhook-validator
image: gcr.io/tensorflow-build-224104/tensorflow-build/webhook:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5001
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /
port: 5001
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
livenessProbe:
failureThreshold: 3
httpGet:
path: /
port: 5001
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources:
requests:
memory: 64Mi
limits:
memory: 128Mi
env:
- name: GITHUB_SECRET
valueFrom:
secretKeyRef:
name: github-webhook-secret
key: webhook-secret
- name: PORT
value: "5001"
- name: DEBUG_MODE
value: "0"
---
apiVersion: v1
kind: Service
metadata:
name: webhook-validator
namespace: sig-build
labels:
app: webhook-validator
spec:
type: ClusterIP
ports:
- port: 80
protocol: TCP
targetPort: 5001
selector:
app: webhook-validator
---