From 21642f6e814e5a60aec5e305e0af1c73adc1178c Mon Sep 17 00:00:00 2001 From: Damien Chomat Date: Fri, 11 Oct 2024 01:09:17 +0200 Subject: [PATCH] fix: Karpenter svc namespace for conversion webhook (#85) --- gitops/components/karpenter/resources.yaml | 62 ++++++++++++---------- 1 file changed, 35 insertions(+), 27 deletions(-) diff --git a/gitops/components/karpenter/resources.yaml b/gitops/components/karpenter/resources.yaml index c60bc69..d975c46 100644 --- a/gitops/components/karpenter/resources.yaml +++ b/gitops/components/karpenter/resources.yaml @@ -15,30 +15,38 @@ spec: syncOptions: - CreateNamespace=true automated: {} - source: - chart: karpenter - repoURL: public.ecr.aws/karpenter - targetRevision: 0.37.5 - helm: - releaseName: karpenter - valuesObject: - hostNetwork: true - controller: - image: - repository: ghcr.io/pelotech/karpenter - tag: v0.37.5-modified - digest: sha256:287efa1feef3fd60dc3d55846beb61bb8b7c65e79a92d1338d36844158c3eb97 - env: - - name: IGNORED_RESOURCE_REQUESTS - value: "devices.kubevirt.io/kvm,devices.kubevirt.io/tun,devices.kubevirt.io/vhost-net,scheduling.node.kubevirt.io/tsc-frequency-2999986000,scheduling.node.kubevirt.io/tsc-frequency-2999987000,scheduling.node.kubevirt.io/tsc-frequency-3000000000" - serviceAccount: - create: "true" - name: "karpenter" - annotations: - eks.amazonaws.com/role-arn: KARPENTER_ROLE_ARN - eks.amazonaws.com/sts-regional-endpoints: "true" - settings: - clusterName: CLUSTER_NAME - interruptionQueue: CLUSTER_NAME - webhook: - enabled: true + sources: + - chart: karpenter-crd + repoURL: public.ecr.aws/karpenter + targetRevision: 0.37.5 + helm: + valuesObject: + webhook: + serviceNamespace: karpenter + - chart: karpenter + repoURL: public.ecr.aws/karpenter + targetRevision: 0.37.5 + helm: + releaseName: karpenter + skipCrds: true + valuesObject: + hostNetwork: true + controller: + image: + repository: ghcr.io/pelotech/karpenter + tag: v0.37.5-modified + digest: sha256:287efa1feef3fd60dc3d55846beb61bb8b7c65e79a92d1338d36844158c3eb97 + env: + - name: IGNORED_RESOURCE_REQUESTS + value: "devices.kubevirt.io/kvm,devices.kubevirt.io/tun,devices.kubevirt.io/vhost-net,scheduling.node.kubevirt.io/tsc-frequency-2999986000,scheduling.node.kubevirt.io/tsc-frequency-2999987000,scheduling.node.kubevirt.io/tsc-frequency-3000000000" + serviceAccount: + create: "true" + name: "karpenter" + annotations: + eks.amazonaws.com/role-arn: KARPENTER_ROLE_ARN + eks.amazonaws.com/sts-regional-endpoints: "true" + settings: + clusterName: CLUSTER_NAME + interruptionQueue: CLUSTER_NAME + webhook: + enabled: true