A simple and slim extention to operate yaml files via kubectl
.
- right click and select the command to operate yaml or directory.
- The prompt before
Apply
andDelete
is implemented throughecho
.
Command | comment | keybindings |
---|---|---|
K8S: Apply |
sleep 5 && kubectl apply -f [DIR|yaml] |
|
K8S: Delete |
sleep 5 && kubectl delete -f [yaml] |
|
K8S: Diff |
kubectl diff -f [DIR|yaml] |
ctrl+shift+alt+d / ctrl+shift+cmd+d |
K8S: Apply kustomize |
sleep 5 && kubectl apply -k [DIR] |
|
K8S: Diff kustomize |
sleep 5 && kubectl diff -k [DIR] |
|
K8S: Sync Container |
kubeApply Sync Online container config | ctrl+shift+alt+s / ctrl+shift+cmd+s |
K8S: Sync |
kubeApply Sync All Online config adapt YAML | |
DIR: cd |
cd to selected folder |
- a configured
kubectl
- an active terminal in VSCode