Add K8s way

This commit is contained in:
Evgeny Shmarnev 2019-10-01 08:29:10 +02:00
parent a2d47840b1
commit c1b34d90a9

View file

@ -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
```