Merge pull request #38 from Evalle/k8s-way

Add K8s way
This commit is contained in:
Luke Stephens (hakluke) 2019-10-01 20:50:43 +10:00 committed by GitHub
commit ec99bcddd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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