diff --git a/charts/karpenter/README.md b/charts/karpenter/README.md index bab7f9dd2236..993cc08f6d86 100644 --- a/charts/karpenter/README.md +++ b/charts/karpenter/README.md @@ -44,6 +44,7 @@ cosign verify public.ecr.aws/karpenter/karpenter:1.0.0 \ | additionalClusterRoleRules | list | `[]` | Specifies additional rules for the core ClusterRole. | | additionalLabels | object | `{}` | Additional labels to add into metadata. | | affinity | object | `{"nodeAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":{"nodeSelectorTerms":[{"matchExpressions":[{"key":"karpenter.sh/nodepool","operator":"DoesNotExist"}]}]}},"podAntiAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":[{"topologyKey":"kubernetes.io/hostname"}]}}` | Affinity rules for scheduling the pod. If an explicit label selector is not provided for pod affinity or pod anti-affinity one will be created from the pod selector labels. | +| controller.containerName | string | `"controller"` | Distinguishing container name (containerName: karpenter-controller). | | controller.env | list | `[]` | Additional environment variables for the controller pod. | | controller.envFrom | list | `[]` | | | controller.extraVolumeMounts | list | `[]` | Additional volumeMounts for the controller pod. | diff --git a/charts/karpenter/templates/deployment.yaml b/charts/karpenter/templates/deployment.yaml index 4f0ea6b27576..7671f18daeda 100644 --- a/charts/karpenter/templates/deployment.yaml +++ b/charts/karpenter/templates/deployment.yaml @@ -57,7 +57,7 @@ spec: hostNetwork: true {{- end }} containers: - - name: controller + - name: {{ .Values.controller.containerName | default "controller" }} securityContext: runAsUser: 65532 runAsGroup: 65532 diff --git a/charts/karpenter/values.yaml b/charts/karpenter/values.yaml index a6f7f38b71e7..7bb221f61cbc 100644 --- a/charts/karpenter/values.yaml +++ b/charts/karpenter/values.yaml @@ -100,6 +100,8 @@ extraVolumes: [] # expirationSeconds: 86400 # path: token controller: + # -- Distinguishing container name (containerName: karpenter-controller). + containerName: controller image: # -- Repository path to the controller image. repository: public.ecr.aws/karpenter/controller