Add kubernetes layer.
This commit is contained in:
parent
f68cfc0975
commit
5e7eb5d01c
|
@ -0,0 +1,31 @@
|
|||
#+TITLE: kubernetes layer
|
||||
|
||||
[[file:./img/kubernetes.png]]
|
||||
|
||||
* Table of Contents :TOC_4_gh:noexport:
|
||||
- [[#description][Description]]
|
||||
- [[#features][Features:]]
|
||||
- [[#install][Install]]
|
||||
- [[#key-bindings][Key bindings]]
|
||||
|
||||
* 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:
|
||||
- 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
|
||||
|
||||
* 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.
|
||||
|
||||
* Key bindings
|
||||
|
||||
| Key Binding | Description |
|
||||
|-------------+-----------------------------|
|
||||
| ~SPC a K~ | Opens =kubernetes-overview= |
|
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
|
@ -0,0 +1,32 @@
|
|||
;;; packages.el --- kubernetes layer packages file for Spacemacs.
|
||||
;;
|
||||
;; Copyright (c) 2012-2017 Matt Bray & Contributors
|
||||
;;
|
||||
;; Author: Matt Bray <mattjbray@gmail.com>
|
||||
;; URL: https://github.com/syl20bnr/spacemacs
|
||||
;;
|
||||
;; This file is not part of GNU Emacs.
|
||||
;;
|
||||
;;; License: GPLv3
|
||||
|
||||
;;; Code:
|
||||
|
||||
(defconst kubernetes-packages
|
||||
'(
|
||||
kubernetes
|
||||
kubernetes-evil
|
||||
)
|
||||
)
|
||||
|
||||
(defun kubernetes/init-kubernetes ()
|
||||
(use-package kubernetes
|
||||
:defer t
|
||||
;; Autoload for 'kubernetes-overview is defined in "kubernetes-overview.el".
|
||||
;; Add an autoload for the whole 'kubernetes package when kubernetes-overview is called.
|
||||
:commands (kubernetes-overview)
|
||||
:init (spacemacs/set-leader-keys "aK" 'kubernetes-overview)))
|
||||
|
||||
(defun kubernetes/init-kubernetes-evil ()
|
||||
(use-package kubernetes-evil :after kubernetes-overview))
|
||||
|
||||
;;; packages.el ends here
|
Loading…
Reference in New Issue