Skip to content

Commit

Permalink
update readme [skip ci]
Browse files Browse the repository at this point in the history
update readme [skip ci]
  • Loading branch information
kaiohenricunha authored Jan 25, 2024
2 parents bd95fe8 + 58603c9 commit cc27114
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/destroy-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,6 @@ jobs:
cd environments/lab
terraform destroy -target=helm_release.aws_load_balancer_controller -auto-approve
# Destroy Karpenter and its dependencies first
- name: Terraform Destroy Karpenter
if: contains(github.event.inputs.terraform_components, 'karpenter')
run: |
cd environments/lab
terraform destroy -target=module.eks_fargate_karpenter.module.karpenter -auto-approve
- name: Terraform Destroy RDS
if: contains(github.event.inputs.terraform_components, 'rds')
run: |
Expand All @@ -81,6 +74,13 @@ jobs:
cd environments/lab
terraform destroy -target=module.security_group -auto-approve
# Destroy Karpenter and its dependencies first
- name: Terraform Destroy Karpenter
if: contains(github.event.inputs.terraform_components, 'karpenter')
run: |
cd environments/lab
terraform destroy -target=module.eks_fargate_karpenter.module.karpenter -auto-approve
- name: Terraform Destroy EKS
if: contains(github.event.inputs.terraform_components, 'eks')
run: |
Expand Down
4 changes: 2 additions & 2 deletions infra/eks-fargate-karpenter/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ resource "helm_release" "karpenter" {
create_namespace = true

name = "karpenter"
repository = "oci://public.ecr.aws/karpenter/karpenter"
repository = "oci://public.ecr.aws/karpenter"
repository_username = data.aws_ecrpublic_authorization_token.token.user_name
repository_password = data.aws_ecrpublic_authorization_token.token.password
chart = "karpenter"
version = "v0.33.0"
version = "v0.32.0"

values = [
<<-EOT
Expand Down
7 changes: 4 additions & 3 deletions stack/metabase/metabase-hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ spec:
- type: prometheus
metadata:
serverAddress: http://prometheus-operated.monitoring:9090
metricName: istio_requests_total
metricName: requests_per_second
# (rate) will give us the number of requests per second within a 2 minute window. sum() will add add data from all pods.
query: |
sum(istio_requests_total{destination_workload="metabase"})
threshold: "1000"
sum(rate(istio_requests_total{destination_workload="metabase"}[2m]))
threshold: "100"
- type: memory
metricType: Utilization
metadata:
Expand Down

0 comments on commit cc27114

Please sign in to comment.