diff --git a/website/content/docs/k8s/upgrade/index.mdx b/website/content/docs/k8s/upgrade/index.mdx index 5f1ebca34e55..e92ec12be2aa 100644 --- a/website/content/docs/k8s/upgrade/index.mdx +++ b/website/content/docs/k8s/upgrade/index.mdx @@ -232,13 +232,13 @@ If you upgrade Consul from a version that uses client agents to a version the us to make sure that the ACL tokens used by existing services are still valid during the migration to `consul-dataplane`. Note that you must remove the token manually after completing the migration. -The following command triggers the deployment rollout. Wait for the rollout to complete before proceeding to next step. + The following command triggers the deployment rollout. Wait for the rollout to complete before proceeding to next step. - ```bash - kubectl config set-context --current --namespace= - INJECTOR_DEPLOYMENT=$(kg deploy -l "component=connect-injector" -o=jsonpath='{.items[0].metadata.name}') - kubectl patch deploy $INJECTOR_DEPLOYMENT --type='json' -p='[{"op": "remove", "path": "/spec/template/spec/containers/0/lifecycle"}]' - ``` + ```bash + kubectl config set-context --current --namespace= + INJECTOR_DEPLOYMENT=$(kg deploy -l "component=connect-injector" -o=jsonpath='{.items[0].metadata.name}') + kubectl patch deploy $INJECTOR_DEPLOYMENT --type='json' -p='[{"op": "remove", "path": "/spec/template/spec/containers/0/lifecycle"}]' + ``` 1. Follow our [recommended procedures to upgrade servers](#upgrade-consul-servers) on Kubernetes deployments to upgrade Helm values for the new version of Consul.