Repository navigation
fix(#1284): add K8s workload compute cost estimation to CI - #1411
Merged
phertyameen merged 2 commits intoNov 19, 2026
Merged
phertyameen merged 2 commits into
phertyameen merged 2 commits into
Conversation
…o CI - Add scripts/k8s-cost-estimate.sh: reads resource requests/limits from infra/k8s/base/deployment.yaml and replica counts from each kustomize overlay (mainnet=3, staging=2, testnet=1) to produce a Markdown cost table with lower (requests) and upper (limits) monthly bounds. Pricing reference: AWS EKS Fargate on-demand us-east-1. - Extend .github/workflows/infracost.yml: now triggers on infra/k8s/** and scripts/k8s-cost-estimate.sh changes in addition to infra/terraform. New k8s-workload-cost job runs the script, writes output to GITHUB_STEP_SUMMARY, and upserts a PR comment (idempotent via HTML marker). Advisory-only — not a required status check, consistent with BlockHaven-Labs#1258. - Add docs/audit-notes/issue-1284.md documenting the finding and resolution. Closes BlockHaven-Labs#1284
|
@Princeadim is attempting to deploy a commit to the aminubabafatima8-gmailcom's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #1284.
Infracost estimated AWS Terraform-provisioned resources (VPC, S3, KMS, ACM, CloudFront, ECR, Route53) but had no visibility into the compute cost of workloads running inside the cluster across the three environments.
Changes
scripts/k8s-cost-estimate.sh(new)Reads resource requests/limits from
infra/k8s/base/deployment.yamland replica counts from each kustomize overlay to produce a Markdown cost table:Pricing reference: AWS EKS Fargate on-demand us-east-1. Overridable via
CPU_PRICE_PER_VCPU_HOUR/MEM_PRICE_PER_GB_HOURenv vars..github/workflows/infracost.ymlinfra/k8s/**andscripts/k8s-cost-estimate.shk8s-workload-costjob: runs the script, writes to$GITHUB_STEP_SUMMARY, upserts a PR comment (idempotent via HTML marker)docs/audit-notes/issue-1284.md(new)Documents the finding, methodology, and operational guidance.
Tested