-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk8s.yaml
70 lines (70 loc) · 1.43 KB
/
k8s.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: go-bot
labels:
app: go-bot
component: go=bot
spec:
replicas: 1
selector:
matchLabels:
app: go-bot
strategy:
rollingUpdate:
maxSurge: "100%"
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
labels:
app: go-bot
spec:
containers:
- name: go-bot
image: snimmagadda/github-pr-bot
env:
- name: APP_ID
value: "1234"
- name: CERT_PATH
value: /temp/bot.pem
- name: OWNER
value: test
# - name: GITHUB_ENTERPRISE_URL
# value: test
# - name: GITHUB_ENTERPRISE_UPLOAD_URL
# value: test
- name: MASTER_BRANCH
value: main
- name: RELEASE_BRANCH
value: release-1.1.0
- name: REPOS
value: my-api1,my-api2,my-ui1
ports:
- containerPort: 3000
protocol: TCP
volumeMounts:
- name: github-rsa-keypair
mountPath: /app/keys
volumes:
- name: github-rsa-keypair
secret:
secretName: github-rsa-keypair
items:
- key: private-key
path: github-private-key.pem
---
apiVersion: v1
kind: Service
metadata:
labels:
app: go-bot
name: go-bot-svc
spec:
ports:
- name: tcp-3000
port: 3000
protocol: TCP
targetPort: 3000
selector:
app: go-bot