From ca6f640ccfbe8e89266e376a033a0afcdd1d5a72 Mon Sep 17 00:00:00 2001 From: Ajayi Dipo Date: Mon, 9 Dec 2024 13:28:47 +0100 Subject: [PATCH] Add Extra tags to karpenter config (#846) * Add Extra tags to karpenter config * update tags --------- Co-authored-by: Harshit Luthra --- .../controlplane/karpenter-control-plane-ec2nodeclass.yaml | 2 ++ .../templates/default/karpenter-default-ec2nodeclass.yaml | 2 ++ .../templates/gpu/karpenter-gpu-default-ec2nodeclass.yaml | 1 + 3 files changed, 5 insertions(+) diff --git a/charts/tfy-karpenter-config/templates/controlplane/karpenter-control-plane-ec2nodeclass.yaml b/charts/tfy-karpenter-config/templates/controlplane/karpenter-control-plane-ec2nodeclass.yaml index 63dca7ed7..1a354c700 100644 --- a/charts/tfy-karpenter-config/templates/controlplane/karpenter-control-plane-ec2nodeclass.yaml +++ b/charts/tfy-karpenter-config/templates/controlplane/karpenter-control-plane-ec2nodeclass.yaml @@ -23,6 +23,8 @@ spec: {{ $key }}: {{ $val | quote }} {{- end }} tags: + truefoundry.com/compute_type: cpu + truefoundry.com/component_type: control-plane karpenter.sh/discovery: {{ .Values.cluster.name }} cluster-name: {{ .Values.cluster.name }} {{- range $key, $val := .Values.karpenter.controlPlaneNodeTemplate.extraTags }} diff --git a/charts/tfy-karpenter-config/templates/default/karpenter-default-ec2nodeclass.yaml b/charts/tfy-karpenter-config/templates/default/karpenter-default-ec2nodeclass.yaml index f79f11558..ea9fe49ef 100644 --- a/charts/tfy-karpenter-config/templates/default/karpenter-default-ec2nodeclass.yaml +++ b/charts/tfy-karpenter-config/templates/default/karpenter-default-ec2nodeclass.yaml @@ -22,6 +22,8 @@ spec: {{ $key }}: {{ $val | quote }} {{- end }} tags: + truefoundry.com/compute_type: cpu + truefoundry.com/component_type: default karpenter.sh/discovery: {{ .Values.cluster.name }} cluster-name: {{ .Values.cluster.name }} {{- range $key, $val := .Values.karpenter.defaultNodeTemplate.extraTags }} diff --git a/charts/tfy-karpenter-config/templates/gpu/karpenter-gpu-default-ec2nodeclass.yaml b/charts/tfy-karpenter-config/templates/gpu/karpenter-gpu-default-ec2nodeclass.yaml index 0180f6700..b3b9dce8e 100644 --- a/charts/tfy-karpenter-config/templates/gpu/karpenter-gpu-default-ec2nodeclass.yaml +++ b/charts/tfy-karpenter-config/templates/gpu/karpenter-gpu-default-ec2nodeclass.yaml @@ -23,6 +23,7 @@ spec: {{ $key }}: {{ $val | quote }} {{- end }} tags: + truefoundry.com/compute_type: gpu karpenter.sh/discovery: {{ .Values.cluster.name }} cluster-name: {{ .Values.cluster.name }} {{- range $key, $val := .Values.karpenter.gpuDefaultNodeTemplate.extraTags }}