From 09d443a19daf12e701cc37b411d7fef220e2a7cb Mon Sep 17 00:00:00 2001 From: Lin Sun Date: Thu, 31 May 2018 19:26:50 -0400 Subject: [PATCH] need to use replace vs create (#1397) to avoid failure as the app is already deployed --- content/docs/setup/kubernetes/upgrading-istio.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/docs/setup/kubernetes/upgrading-istio.md b/content/docs/setup/kubernetes/upgrading-istio.md index 414f4d3dfd..ae7e2b78d3 100644 --- a/content/docs/setup/kubernetes/upgrading-istio.md +++ b/content/docs/setup/kubernetes/upgrading-istio.md @@ -65,7 +65,7 @@ The applications already running istio will still using the sidecar from 0.7.1 a sidecar manually by running the following command: ```command - $ kubectl apply -f <(istioctl kube-inject -f $ORIGINAL_DEPLOYMENT_YAML) + $ kubectl replace -f <(istioctl kube-inject -f $ORIGINAL_DEPLOYMENT_YAML) ``` If the sidecar was previously injected with some customized inject config @@ -73,7 +73,7 @@ The applications already running istio will still using the sidecar from 0.7.1 a version and reinject the sidecar as follows: ```command - $ kubectl apply -f <(istioctl kube-inject \ + $ kubectl replace -f <(istioctl kube-inject \ --injectConfigFile inject-config.yaml \ --filename $ORIGINAL_DEPLOYMENT_YAML) ``` @@ -102,4 +102,4 @@ spec: ``` -When all your applications have been migrated and tested, you can repeat the istio upgrade process, removing the `--set global.proxy.image=proxy` option. \ No newline at end of file +When all your applications have been migrated and tested, you can repeat the istio upgrade process, removing the `--set global.proxy.image=proxy` option.