From 5140f62535bdbd6e9e83003300a559edb9f5cda6 Mon Sep 17 00:00:00 2001 From: Amanuel Engeda Date: Sun, 11 Aug 2024 16:52:57 -0700 Subject: [PATCH] Update docs to allow webhooks to enabled by the helm controller --- website/content/en/preview/upgrading/v1-migration.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/website/content/en/preview/upgrading/v1-migration.md b/website/content/en/preview/upgrading/v1-migration.md index ee485ed12c52..96bd00c1f154 100644 --- a/website/content/en/preview/upgrading/v1-migration.md +++ b/website/content/en/preview/upgrading/v1-migration.md @@ -49,6 +49,7 @@ Please read through the entire procedure before beginning the upgrade. There are ```bash export KARPENTER_NAMESPACE=kube-system export KARPENTER_VERSION=1.0.0 + export KARPENTER_IAM_ROLE_ARN="arn:${AWS_PARTITION}:iam::${AWS_ACCOUNT_ID}:role/${CLUSTER_NAME}-karpenter" export AWS_PARTITION="aws" # if you are not using standard partitions, you may need to configure to aws-cn / aws-us-gov export CLUSTER_NAME="${USER}-karpenter-demo" export AWS_REGION="us-west-2" @@ -72,7 +73,7 @@ Please read through the entire procedure before beginning the upgrade. There are ```bash helm upgrade --install karpenter-crd oci://public.ecr.aws/karpenter/karpenter-crd --version "${KARPENTER_VERSION}" --namespace "${KARPENTER_NAMESPACE}" --create-namespace \ - --set webhook.enabled=true \ + --set webhook.enabled=false \ --set webhook.serviceName=karpenter \ --set webhook.serviceNamespace="${KARPENTER_NAMESPACE}" \ --set webhook.port=8443 @@ -82,6 +83,7 @@ Please read through the entire procedure before beginning the upgrade. There are ```bash helm upgrade --install karpenter oci://public.ecr.aws/karpenter/karpenter --version ${KARPENTER_VERSION} --namespace "${KARPENTER_NAMESPACE}" --create-namespace \ + --set serviceAccount.annotations."eks\.amazonaws\.com/role-arn"=${KARPENTER_IAM_ROLE_ARN} \ --set settings.clusterName=${CLUSTER_NAME} \ --set settings.interruptionQueue=${CLUSTER_NAME} \ --set controller.resources.requests.cpu=1 \ @@ -211,6 +213,7 @@ Since both v1beta1 and v1 will be served, `kubectl` will default to returning th ```bash export KARPENTER_NAMESPACE="kube-system" export KARPENTER_VERSION="" +export KARPENTER_IAM_ROLE_ARN="arn:${AWS_PARTITION}:iam::${AWS_ACCOUNT_ID}:role/${CLUSTER_NAME}-karpenter" export CLUSTER_NAME="" export TEMPOUT="$(mktemp)" ```