adding kub templates
This commit is contained in:
parent
5188bb0e10
commit
4bab381ca3
|
@ -38,3 +38,8 @@ end)
|
|||
|
||||
-- In your keybindings configuration (e.g., lua/config/keymaps.lua or init.lua)
|
||||
vim.keymap.set('n', '<leader>w', '<cmd>NvimTreeToggle<CR>', { desc = 'Toggle NvimTree' })
|
||||
|
||||
-- Insert Kubernetes Deployment template below the cursor
|
||||
vim.keymap.set('n', '<leader>kd', function()
|
||||
vim.cmd 'read ~/.config/nvim/lua/custom/templates/k8s-deployment.yaml'
|
||||
end, { desc = 'Insert K8s Deployment template' })
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: <name>
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: <name>
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: <name>
|
||||
spec:
|
||||
containers:
|
||||
- name: <name>
|
||||
image: nginx:latest
|
||||
ports:
|
||||
- containerPort: 80
|
||||
|
Loading…
Reference in New Issue