Skip to content

Commit

Permalink
fix dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lpm0073 committed Jan 11, 2023
1 parent 7defa6e commit cf6dac5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Binary file modified {{cookiecutter.github_repo_name}}/doc/terraform-init-stack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module "karpenter_controller_irsa_role" {


resource "helm_release" "karpenter" {
namespace = "monitoring"
namespace = "karpenter"
create_namespace = true

name = "karpenter"
Expand Down Expand Up @@ -159,7 +159,7 @@ resource "aws_iam_role_policy_attachment" "ec2_spot_fleet_tagging" {
}

resource "kubectl_manifest" "vpa-karpenter" {
yaml_body = file("${path.module}/yml/verticalpodautoscalers/vpa-karpenter.yaml")
yaml_body = file("${path.module}/yml/vpa-karpenter.yaml")

depends_on = [
helm_release.karpenter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ data "template_file" "karpenter" {
template = file("${path.module}/yml/vpa-karpenter.yaml")
}

resource "kubectl_manifest" "nginx" {
resource "kubectl_manifest" "karpenter" {
yaml_body = data.template_file.karpenter.rendered

depends_on = [
helm_release.karpenter
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
name: vpa-recommender-karpenter
namespace: vpa
namespace: karpenter
spec:
targetRef:
apiVersion: "apps/v1"
Expand Down

0 comments on commit cf6dac5

Please sign in to comment.