Skip to content

Commit

Permalink
Merge pull request #109 from dadiorchen/prod-deployment
Browse files Browse the repository at this point in the history
feat: deploy test
  • Loading branch information
dadiorchen authored May 24, 2022
2 parents e9d9626 + cee08a6 commit c040cf7
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
37 changes: 37 additions & 0 deletions deployment/overlays/prod/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: treetracker-query-api
namespace: webmap
labels:
app: treetracker-query-api
spec:
replicas: 1
selector:
matchLabels:
app: treetracker-query-api
template:
metadata:
labels:
app: treetracker-query-api
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: doks.digitalocean.com/node-pool
operator: In
values:
- microservices-node-pool
containers:
- name: treetracker-query-api
image: greenstand/treetracker-query-api:TAG
ports:
- containerPort: 80
env:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: dbconnection
key: database
3 changes: 2 additions & 1 deletion deployment/overlays/prod/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
bases:
- ../../base
patchesStrategicMerge:
- database-connection-sealed-secret.yaml
- treetracker-webmap-api-mapping.yaml
- deployment.yaml
16 changes: 16 additions & 0 deletions deployment/overlays/prod/treetracker-webmap-api-mapping.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
apiVersion: getambassador.io/v2
kind: Mapping
metadata:
name: treetracker-query-api
namespace: webmap
spec:
cors:
origins:
- '*'
- https://wallet.treetracker.org
- https://freetown.treetracker.org
- https://map.treetracker.org
- https://forestmatic.com
- https://app.forestmatic.com
- https://staging-app.forestmatic.com

0 comments on commit c040cf7

Please sign in to comment.