Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
Merge pull request #61 from jlewi/setup_prod
Browse files Browse the repository at this point in the history
Setup a prod environment for the issue label bot.
  • Loading branch information
hamelsmu authored Jan 24, 2020
2 parents 15a9b82 + 7a4ddb0 commit 39cd01b
Show file tree
Hide file tree
Showing 17 changed files with 77 additions and 328 deletions.
2 changes: 1 addition & 1 deletion deployment/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
valueFrom:
secretKeyRef:
name: ml-app-inference-secret
key: WEBHOOK_SECRET
key: WEBHOOK_SECRET
# The values for the Kubeflow kf-label-bot-dev application
# See kubeflow/code-intelligence#84. This is suitable
# for development but shouldn't be used in production
Expand Down
19 changes: 0 additions & 19 deletions deployment/certificate.mlbot-net.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions deployment/certificate.yaml

This file was deleted.

79 changes: 0 additions & 79 deletions deployment/deployments-test.yaml

This file was deleted.

77 changes: 0 additions & 77 deletions deployment/deployments.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions deployment/fake-secret.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions deployment/ingress-test.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions deployment/ingress.mlbot-net.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions deployment/ingress.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
apiVersion: networking.gke.io/v1beta1
kind: ManagedCertificate
metadata:
name: mlbot-net-2
namespace: mlapp
name: certificate
spec:
domains:
- mlbot.net
- label-bot-prod.mlbot.net
6 changes: 4 additions & 2 deletions deployment/overlays/prod/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: ml-github-app
spec:
replicas: 9
template:
spec:
containers:
- name: frontend
Expand All @@ -24,9 +25,10 @@ spec:
value: "27079"
# Pato the GitHub app PEM key
- name: GITHUB_APP_PEM_KEY
value: /var/secrets/github/kf-label-bot-dev.private-key.pem
value: /var/secrets/github/kf-label-bot-prod.private-key.pem
# The GCP project and pubsub topic to publish to should
# correspond to the production backend
# correspond to the production backend. The project is unfortunately
# named issue-label-bot-dev.
- name: GCP_PROJECT_ID
value: issue-label-bot-dev
- name: GCP_PUBSUB_TOPIC_NAME
Expand Down
7 changes: 7 additions & 0 deletions deployment/overlays/prod/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: frontend
annotations:
kubernetes.io/ingress.global-static-ip-name: label-bot-prod
networking.gke.io/managed-certificates: certificate
15 changes: 15 additions & 0 deletions deployment/overlays/prod/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
environment: prod
namespace: label-bot-prod
images:
- name: gcr.io/github-probots/label-bot-frontend
newName: gcr.io/github-probots/label-bot-frontend
newTag: 2cb624e
resources:
- certificate.yaml
- ../../base
patchesStrategicMerge:
- deployment.yaml
- ingress.yaml
14 changes: 0 additions & 14 deletions deployment/service-test.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions deployment/service.yaml

This file was deleted.

Loading

0 comments on commit 39cd01b

Please sign in to comment.