Edit k8s objects, view pod logs, etc...
- tmux
- neovim v0.5.1
Plug 'nvim-lua/popup.nvim'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
Plug 'frenchtoasters/telescope-kubectl.nvim'
require('telescope').load_extension('k8s_commands')
require'telescope'.setup {
...
extensions = {
k8s_commands = {
kubeconfig = "/kube/configs", -- defaults to $HOME/.kube/config
k8s_cmd = "k" -- defaults to kubectl
}
},
}
# vimscript
nnoremap <leader>k <cmd>lua require('telescope').load_extension('k8s_commands').k8s()<cr>
# lua
vim.keymap.set("n","<leader>k", ":lua require('telescope').load_extension('k8s_commands').k8s()<CR>", opts)