To cleanup, follow the below steps.
Terminate any kubectl port-forward or watch processes
killall kubectl
killall watch
When you’re finished experimenting with the Bookinfo sample, uninstall and clean it up using the following instructions
export NAMESPACE="bookinfo"
${HOME}/environment/istio-${ISTIO_VERSION}/samples/bookinfo/platform/kube/cleanup.sh
kubectl delete ns bookinfo
istioctl will delete:
istio-system namespaceYou can ignore the errors for non-existent resources because they may have been deleted hierarchically.
istioctl manifest generate --set profile=demo | kubectl delete -f -
Finally, we can delete the istio folder and clean up the ~/.bash_profile.
cd ~/environment
rm -rf istio-${ISTIO_VERSION}
sed -i '/ISTIO_VERSION/d' ${HOME}/.bash_profile
unset ISTIO_VERSION