mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-26 04:23:58 +03:00
switch to transactor in kubernetes
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
c713a07531
commit
959c52a78e
@ -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"
|
||||
]
|
||||
})
|
||||
|
24
server/server/kube/ingress.yml
Normal file
24
server/server/kube/ingress.yml
Normal 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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user