This repository has been archived by the owner on Dec 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update the prod instance. Check in hydrated manifests for prod.
- Loading branch information
Jeremy Lewi
committed
May 4, 2020
1 parent
3f698dc
commit a9fafaf
Showing
7 changed files
with
144 additions
and
1 deletion.
There are no files selected for viewing
81 changes: 81 additions & 0 deletions
81
.build/prod/apps_v1_deployment_label-bot-ml-github-app.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: label-bot | ||
environment: prod | ||
service: label-bot | ||
name: label-bot-ml-github-app | ||
namespace: label-bot-prod | ||
spec: | ||
replicas: 9 | ||
selector: | ||
matchLabels: | ||
app: label-bot | ||
environment: prod | ||
service: label-bot | ||
template: | ||
metadata: | ||
labels: | ||
app: label-bot | ||
environment: prod | ||
service: label-bot | ||
spec: | ||
containers: | ||
- command: | ||
- python | ||
- app.py | ||
env: | ||
- name: DATABASE_URL | ||
valueFrom: | ||
secretKeyRef: | ||
key: DATABASE_URL | ||
name: ml-app-inference-secret | ||
- name: WEBHOOK_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
key: WEBHOOK_SECRET | ||
name: ml-app-inference-secret | ||
- name: APP_ID | ||
value: "27079" | ||
- name: GITHUB_APP_PEM_KEY | ||
value: /var/secrets/github/kf-label-bot-prod.private-key.pem | ||
- name: GCP_PROJECT_ID | ||
value: issue-label-bot-dev | ||
- name: GCP_PUBSUB_TOPIC_NAME | ||
value: event_queue | ||
- name: GOOGLE_APPLICATION_CREDENTIALS | ||
value: /var/secrets/google/user-gcp-sa.json | ||
- name: FLASK_ENV | ||
value: production | ||
- name: PORT | ||
value: "3000" | ||
- name: APP_URL | ||
value: https://mlbot.net/ | ||
- name: authors | ||
value: c | ||
image: gcr.io/github-probots/label-bot-frontend:3f698dc | ||
name: frontend | ||
ports: | ||
- containerPort: 443 | ||
- containerPort: 80 | ||
- containerPort: 3000 | ||
readinessProbe: | ||
httpGet: | ||
path: / | ||
port: 3000 | ||
initialDelaySeconds: 10 | ||
periodSeconds: 3 | ||
volumeMounts: | ||
- mountPath: /var/secrets/google | ||
name: user-gcp-sa | ||
- mountPath: /var/secrets/github | ||
name: github-app | ||
workingDir: /flask_app | ||
volumes: | ||
- name: user-gcp-sa | ||
secret: | ||
secretName: user-gcp-sa | ||
- name: github-app | ||
secret: | ||
secretName: github-app |
23 changes: 23 additions & 0 deletions
23
.build/prod/extensions_v1beta1_ingress_label-bot-frontend.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
kubernetes.io/ingress.global-static-ip-name: label-bot-prod | ||
networking.gke.io/managed-certificates: certificate | ||
labels: | ||
app: label-bot | ||
environment: prod | ||
service: label-bot | ||
name: label-bot-frontend | ||
namespace: label-bot-prod | ||
spec: | ||
backend: | ||
serviceName: label-bot-ml-github-app | ||
servicePort: 3000 | ||
rules: | ||
- http: | ||
paths: | ||
- backend: | ||
serviceName: label-bot-ml-github-app | ||
servicePort: 3000 | ||
path: / |
10 changes: 10 additions & 0 deletions
10
.build/prod/networking.gke.io_v1beta1_managedcertificate_certificate.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: networking.gke.io/v1beta1 | ||
kind: ManagedCertificate | ||
metadata: | ||
labels: | ||
environment: prod | ||
name: certificate | ||
namespace: label-bot-prod | ||
spec: | ||
domains: | ||
- label-bot-prod.mlbot.net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: label-bot | ||
environment: prod | ||
service: label-bot | ||
name: label-bot-ml-github-app | ||
namespace: label-bot-prod | ||
spec: | ||
ports: | ||
- port: 3000 | ||
protocol: TCP | ||
selector: | ||
app: label-bot | ||
environment: prod | ||
service: label-bot | ||
type: NodePort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
!.build | ||
.* | ||
*.pem | ||
*.hdf5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters