-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Grant SSO Devops role permissions on SecretsManager * Add kube-resource-report for cost optimization and fix externaldns chart repo * Add Cost Analyzer for FinOps * Add kube-resource-report for cost optimization and fix externaldns chart repo * Add Cost Analyzer for FinOps --------- Co-authored-by: Exequiel Barrirero <[email protected]>
- Loading branch information
1 parent
3d3c452
commit 6184fd1
Showing
9 changed files
with
132 additions
and
69 deletions.
There are no files selected for viewing
8 changes: 6 additions & 2 deletions
8
apps-devstg/us-east-1/k8s-eks-demoapps/cluster/.terraform.lock.hcl
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
100 changes: 61 additions & 39 deletions
100
apps-devstg/us-east-1/k8s-eks-demoapps/k8s-components/.terraform.lock.hcl
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
apps-devstg/us-east-1/k8s-eks-demoapps/k8s-components/monitoring-cost.tf
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#------------------------------------------------------------------------------ | ||
# FinOps: Kubernetes Resource Report | ||
#------------------------------------------------------------------------------ | ||
# To view the UI run: | ||
# `k port-forward -n monitoring-tools svc/kube-resource-report 8080:80` | ||
# Then browse this URL: | ||
# `http://localhost:8080 | ||
#------------------------------------------------------------------------------ | ||
resource "helm_release" "kube_resource_report" { | ||
count = var.cost_optimization.kube_resource_report ? 1 : 0 | ||
name = "kube-resource-report" | ||
namespace = kubernetes_namespace.monitoring_tools[0].id | ||
repository = "https://rlex.github.io/helm-charts" | ||
chart = "kube-resource-report" | ||
version = "0.10.1" | ||
} | ||
|
||
#------------------------------------------------------------------------------ | ||
# FinOps: Cost Analyzer (KubeCost) | ||
#------------------------------------------------------------------------------ | ||
# IMPORTANT: for now, Cost-Analyzer and the Prom-Stack can't be deployed at the | ||
# same time. This is because the former, by default, deploys its own Prometheus | ||
# stack. Additional tweaking is necessary to work around this issue. | ||
#------------------------------------------------------------------------------ | ||
# To view the UI run: | ||
# `kubectl port-forward -n kubecost deployment/kubecost-cost-analyzer 9090` | ||
# Then browse this URL: | ||
# `http://localhost:9090 | ||
#------------------------------------------------------------------------------ | ||
resource "helm_release" "cost_analyzer" { | ||
count = var.cost_optimization.cost_analyzer && !var.enable_prometheus_stack ? 1 : 0 | ||
name = "cost-analyzer" | ||
namespace = kubernetes_namespace.monitoring_tools[0].id | ||
repository = "https://kubecost.github.io/cost-analyzer/" | ||
chart = "cost-analyzer" | ||
version = "1.101.3" | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ PROJECT=bb | |
MFA_ENABLED=false | ||
|
||
# Terraform | ||
TERRAFORM_IMAGE_TAG=1.2.7-0.1.7 | ||
TERRAFORM_IMAGE_TAG=1.2.7-0.1.7 |