mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-01 19:26:41 +02:00
Add K8s way
This commit is contained in:
parent
a2d47840b1
commit
c1b34d90a9
1 changed files with 15 additions and 0 deletions
15
README.md
15
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
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue