switch to transactor in kubernetes

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-08-29 09:20:14 +02:00
parent c713a07531
commit 959c52a78e
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0
3 changed files with 41 additions and 1 deletions

View File

@ -106,7 +106,8 @@ const api = new awsx.apigateway.API("login", {
body = Buffer.from(body as string, 'base64').toString()
}
const result = handle(body, 'wss://pacific-refuge-43514.herokuapp.com/')
// const result = handle(body, 'wss://pacific-refuge-43514.herokuapp.com/')
const result = handle(body, 'wss://transactor.hc.engineering/')
return {
statusCode: result.statusCode,
headers: {
@ -285,3 +286,13 @@ new aws.route53.Record("frontRecord", {
"8.9.31.18"
]
})
new aws.route53.Record("transactorRecord", {
name: "transactor.hc.engineering",
zoneId: zoneId,
type: "A",
ttl: 300,
records: [
"8.9.31.18"
]
})

View File

@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: "nginx"
cert-manager.io/issuer: "letsencrypt-prod"
name: transactor-ingress
spec:
tls:
- hosts:
- transactor.hc.engineering
secretName: transactor-tls
rules:
- host: transactor.hc.engineering
http:
paths:
- backend:
service:
name: transactor
port:
number: 80
path: /
pathType: Prefix

View File

@ -19,6 +19,11 @@ spec:
ports:
- containerPort: 3333
imagePullPolicy: Always
env:
- name: MONGO_URL
value: mongodb://root:WZCwnHRazX@mng-mongodb:27017/
- name: ELASTIC_URL
value: http://dev-elasticsearch-coordinating-only:9200/
---
apiVersion: v1
kind: Service