From c1b34d90a94d0ca86c12428ed40fd7f0d198b379 Mon Sep 17 00:00:00 2001 From: Evgeny Shmarnev Date: Tue, 1 Oct 2019 08:29:10 +0200 Subject: [PATCH] Add K8s way --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 83c0ef1..59e63e6 100644 --- a/README.md +++ b/README.md @@ -273,3 +273,18 @@ ps.lookup({ command: 'vim' }, function(error, resultList) { }); }); ``` + +## The Kubernetes way +Credit: @Evalle + +If you run Vim in Kubernetes pod like: + +``` +kubectl run --generator=run-pod/v1 --rm -it my-vim --image=thinkca/vim +``` + +then you would normally exit Vim by deleting the associated Kubernetes pod: + +``` +kubectl delete po my-vim +```