Skip to content

Commit

Permalink
Merge pull request #1255 from input-output-hk/promote-eu-central-live…
Browse files Browse the repository at this point in the history
…-pre-envs

chore: promote live-{preview,preprod} environments to actually live o…
  • Loading branch information
gytis-ivaskevicius committed May 8, 2024
2 parents 4a3d468 + 8d8d25a commit 3ed261c
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .kube/eu-central-1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ contexts:
cluster: arn:aws:eks:eu-central-1:926093910549:cluster/lace-live-eu-central-1
user: lace-ci
name: lace-ci
current-context: eks-admin
current-context: eks-devs
kind: Config
preferences: {}
users:
Expand Down
2 changes: 1 addition & 1 deletion .kube/us-east-2
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ contexts:
cluster: arn:aws:eks:us-east-2:926093910549:cluster/lace-prod-us-east-2
user: lace-ci
name: lace-ci
current-context: eks-admin
current-context: eks-devs
kind: Config
preferences: {}
users:
Expand Down
43 changes: 41 additions & 2 deletions nix/cardano-services/deployments/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ in
};

values = {
backend.hostnames = ["tmp-${final.namespace}.${baseUrl}"];
backend.hostnames = ["backend.${final.namespace}.eks.${baseUrl}" "${final.namespace}.${baseUrl}"];
blockfrost-worker.enabled = true;
pg-boss-worker.enabled = true;
pg-boss-worker.queues = "pool-metadata,pool-metrics";
Expand Down Expand Up @@ -926,6 +926,45 @@ in
};
};

"live-preview@eu-central-1@v1" = final: {
name = "${final.namespace}-cardanojs-v1";
namespace = "live-preview";
context = "eks-admin";
network = "preview";
region = "eu-central-1";

providers = {
backend = {
enabled = true;
env.NODE_ENV = "production";
};
};

values = {
backend.hostnames = ["backend.${final.namespace}.eks.${baseUrl}" "${final.namespace}.${baseUrl}"];
backend.passHandleDBArgs = false;
backend.routes = [
"/v1.0.0/health"
"/v1.0.0/live"
"/v1.0.0/meta"
"/v1.0.0/ready"
"/v1.0.0/asset"
"/v2.0.0/chain-history"
"/v1.0.0/handle"
"/v1.0.0/network-info"
"/v1.0.0/rewards"
"/v1.0.0/stake-pool"
"/v2.0.0/tx-submit"
"/v2.0.0/utxo"
];
# blockfrost-worker.enabled = true;
cardano-services = {
ingresOrder = 99;
image = "926093910549.dkr.ecr.us-east-1.amazonaws.com/cardano-services:s8j5nx9x2naar194pr58kpmlr5s4xn7b";
};
};
};

"live-preview@eu-central-1@v2" = final: {
name = "${final.namespace}-cardanojs-v2";
namespace = "live-preview";
Expand Down Expand Up @@ -958,7 +997,7 @@ in
};

values = {
backend.hostnames = ["tmp-${final.namespace}.${baseUrl}"];
backend.hostnames = ["backend.${final.namespace}.eks.${baseUrl}" "${final.namespace}.${baseUrl}"];
blockfrost-worker.enabled = true;
pg-boss-worker.enabled = true;
pg-boss-worker.queues = "pool-metadata,pool-metrics";
Expand Down

0 comments on commit 3ed261c

Please sign in to comment.