September 2019
Intermediate to advanced
668 pages
15h 59m
English
Run the following command to terminate a Kubernetes cluster:
minikube delete --profile handson-spring-boot-cloud
You can actually run the delete command without specifying the profile, but I find it safer to be explicit regarding the profile when it comes to the delete command. Otherwise, you may accidentally delete the wrong Kubernetes cluster!
Neither the Minikube profile definition under ~/.minikube/profiles/ nor the kubectl context in ~/.kube/config is deleted by this command. If they are no longer required, they can be deleted with the following commands:
rm -r ~/.minikube/profiles/handson-spring-boot-cloudkubectl config delete-context handson-spring-boot-cloud