This repository was archived by the owner on Dec 9, 2022. It is now read-only.
File tree 7 files changed +144
-1
lines changed
7 files changed +144
-1
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : apps/v1
2
+ kind : Deployment
3
+ metadata :
4
+ labels :
5
+ app : label-bot
6
+ environment : prod
7
+ service : label-bot
8
+ name : label-bot-ml-github-app
9
+ namespace : label-bot-prod
10
+ spec :
11
+ replicas : 9
12
+ selector :
13
+ matchLabels :
14
+ app : label-bot
15
+ environment : prod
16
+ service : label-bot
17
+ template :
18
+ metadata :
19
+ labels :
20
+ app : label-bot
21
+ environment : prod
22
+ service : label-bot
23
+ spec :
24
+ containers :
25
+ - command :
26
+ - python
27
+ - app.py
28
+ env :
29
+ - name : DATABASE_URL
30
+ valueFrom :
31
+ secretKeyRef :
32
+ key : DATABASE_URL
33
+ name : ml-app-inference-secret
34
+ - name : WEBHOOK_SECRET
35
+ valueFrom :
36
+ secretKeyRef :
37
+ key : WEBHOOK_SECRET
38
+ name : ml-app-inference-secret
39
+ - name : APP_ID
40
+ value : " 27079"
41
+ - name : GITHUB_APP_PEM_KEY
42
+ value : /var/secrets/github/kf-label-bot-prod.private-key.pem
43
+ - name : GCP_PROJECT_ID
44
+ value : issue-label-bot-dev
45
+ - name : GCP_PUBSUB_TOPIC_NAME
46
+ value : event_queue
47
+ - name : GOOGLE_APPLICATION_CREDENTIALS
48
+ value : /var/secrets/google/user-gcp-sa.json
49
+ - name : FLASK_ENV
50
+ value : production
51
+ - name : PORT
52
+ value : " 3000"
53
+ - name : APP_URL
54
+ value : https://mlbot.net/
55
+ - name : authors
56
+ value : c
57
+ image : gcr.io/github-probots/label-bot-frontend:3f698dc
58
+ name : frontend
59
+ ports :
60
+ - containerPort : 443
61
+ - containerPort : 80
62
+ - containerPort : 3000
63
+ readinessProbe :
64
+ httpGet :
65
+ path : /
66
+ port : 3000
67
+ initialDelaySeconds : 10
68
+ periodSeconds : 3
69
+ volumeMounts :
70
+ - mountPath : /var/secrets/google
71
+ name : user-gcp-sa
72
+ - mountPath : /var/secrets/github
73
+ name : github-app
74
+ workingDir : /flask_app
75
+ volumes :
76
+ - name : user-gcp-sa
77
+ secret :
78
+ secretName : user-gcp-sa
79
+ - name : github-app
80
+ secret :
81
+ secretName : github-app
Original file line number Diff line number Diff line change
1
+ apiVersion : extensions/v1beta1
2
+ kind : Ingress
3
+ metadata :
4
+ annotations :
5
+ kubernetes.io/ingress.global-static-ip-name : label-bot-prod
6
+ networking.gke.io/managed-certificates : certificate
7
+ labels :
8
+ app : label-bot
9
+ environment : prod
10
+ service : label-bot
11
+ name : label-bot-frontend
12
+ namespace : label-bot-prod
13
+ spec :
14
+ backend :
15
+ serviceName : label-bot-ml-github-app
16
+ servicePort : 3000
17
+ rules :
18
+ - http :
19
+ paths :
20
+ - backend :
21
+ serviceName : label-bot-ml-github-app
22
+ servicePort : 3000
23
+ path : /
Original file line number Diff line number Diff line change
1
+ apiVersion : networking.gke.io/v1beta1
2
+ kind : ManagedCertificate
3
+ metadata :
4
+ labels :
5
+ environment : prod
6
+ name : certificate
7
+ namespace : label-bot-prod
8
+ spec :
9
+ domains :
10
+ - label-bot-prod.mlbot.net
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : Service
3
+ metadata :
4
+ labels :
5
+ app : label-bot
6
+ environment : prod
7
+ service : label-bot
8
+ name : label-bot-ml-github-app
9
+ namespace : label-bot-prod
10
+ spec :
11
+ ports :
12
+ - port : 3000
13
+ protocol : TCP
14
+ selector :
15
+ app : label-bot
16
+ environment : prod
17
+ service : label-bot
18
+ type : NodePort
Original file line number Diff line number Diff line change
1
+ ! .build
1
2
. *
2
3
* .pem
3
4
* .hdf5
Original file line number Diff line number Diff line change 21
21
GIT_VERSION := $(shell git describe --always) -dirty-$(shell git diff | shasum -a256 | cut -c -6)
22
22
endif
23
23
24
+ CONTEXT =label-bot-frontend-prod
25
+
26
+ hydrate-prod :
27
+ rm -rf .build/prod
28
+ mkdir -p .build/prod
29
+ kustomize build -o .build/prod deployment/overlays/prod
30
+
31
+ apply-prod : hydrate-prod
32
+ kubectl --context=$(CONTEXT ) apply -f .build/prod
33
+
24
34
TAG := $(shell date +v% Y% m% d) -$(GIT_VERSION )
25
35
all : build
26
36
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ namespace: label-bot-prod
6
6
images :
7
7
- name : gcr.io/github-probots/label-bot-frontend
8
8
newName : gcr.io/github-probots/label-bot-frontend
9
- newTag : 2cb624e
9
+ newTag : 3f698dc
10
10
resources :
11
11
- certificate.yaml
12
12
- ../../base
You can’t perform that action at this time.
0 commit comments