2017-07-04 15:29:54 +00:00
|
|
|
#+TITLE: kubernetes layer
|
|
|
|
|
2020-04-18 19:28:14 +00:00
|
|
|
#+TAGS: layer|tool
|
2019-12-09 21:44:48 +00:00
|
|
|
|
2017-07-04 15:29:54 +00:00
|
|
|
[[file:./img/kubernetes.png]]
|
|
|
|
|
2019-12-09 21:44:48 +00:00
|
|
|
* Table of Contents :TOC_5_gh:noexport:
|
2017-07-04 15:29:54 +00:00
|
|
|
- [[#description][Description]]
|
|
|
|
- [[#features][Features:]]
|
|
|
|
- [[#install][Install]]
|
2020-03-17 19:19:43 +00:00
|
|
|
- [[#usage][Usage]]
|
|
|
|
- [[#tramp-access-to-kubernetes-containers][TRAMP access to kubernetes containers]]
|
2020-03-21 19:36:41 +00:00
|
|
|
- [[#key-bindings][Key bindings]]
|
2017-07-04 15:29:54 +00:00
|
|
|
|
|
|
|
* Description
|
|
|
|
This layer provides the [[https://github.com/chrisbarrett/kubernetes-el#kubernetes-el][kubernetes-el]] package, a magit-style interface to the
|
|
|
|
Kubernetes command-line client.
|
|
|
|
|
|
|
|
** Features:
|
2019-12-06 23:40:24 +00:00
|
|
|
- Live-updating lists of kubernetes resources
|
|
|
|
- Viewing and deleting pods, configmaps and secrets
|
|
|
|
- Switching contexts and namespaces.
|
|
|
|
- Showing logs and exec'ing into containers
|
|
|
|
- Describing pods
|
2020-03-17 19:19:43 +00:00
|
|
|
- Tramp support for pods
|
|
|
|
- Evil bindings
|
2017-07-04 15:29:54 +00:00
|
|
|
|
|
|
|
* Install
|
|
|
|
To use this configuration layer, add it to your =~/.spacemacs=. You will need to
|
|
|
|
add =kubernetes= to the existing =dotspacemacs-configuration-layers= list in this
|
|
|
|
file.
|
|
|
|
|
2020-03-17 19:19:43 +00:00
|
|
|
* Usage
|
|
|
|
** TRAMP access to kubernetes containers
|
|
|
|
This relies on the [[https://github.com/gruggiero/kubernetes-tramp][kubernetes-tramp]] package which uses =kubernetes exec=
|
|
|
|
to access files in pods. It assumes that =kubectl= is properly installed
|
|
|
|
and has already set the correct context.
|
|
|
|
|
|
|
|
=kubernetes-tramp= adds a new prefix =/kubernetes:container:= that you can use with ~SPC f f~,
|
|
|
|
this prefix allows to access your kubernetes containers and also provides auto-completion
|
|
|
|
of the running containers.
|
|
|
|
|
2017-07-04 15:29:54 +00:00
|
|
|
* Key bindings
|
|
|
|
|
2019-12-09 21:44:48 +00:00
|
|
|
| Key binding | Description |
|
2017-07-04 15:29:54 +00:00
|
|
|
|-------------+-----------------------------|
|
2020-06-21 22:04:52 +00:00
|
|
|
| ~SPC a t k~ | Opens =kubernetes-overview= |
|