Add liveMigration example to plugins (#2522)

mine
Rabin Yasharzadehe 2024-02-07 18:17:22 +02:00 committed by GitHub
parent 90a810ffc2
commit 9ca46ab027
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
# $XDG_CONFIG_HOME/k9s/plugins.yaml
plugins:
# liveMigration plugin config by rabin-io
#
# Trigger virtual machine live migration, for VM's running on k8s cluster using kubevirt
# or Openshift with CNV (OpenShift Virtualization) installed.
#
# Require `virtctl` cli in your PATH,
# can be downloaded from Openshift `Command Line Tools` page
# or from kubevirt site https://kubevirt.io/user-guide/operations/virtctl_client_tool/
#
#
liveMigration:
# Can be triggered from the VMI (VirtualMachineInstance) view, with shortcut `m`
shortCut: m
# Description to show in K9s menu
description: Live Migrate moves VM to another compute node
# Enable confirmation dialog
confirm: true
# Collections of views that support this shortcut. (You can use `all`)
scopes:
- virtualmachineinstance
# Whether or not to run the command in background mode
background: false
# The command to run upon invocation.
command: virtctl
# Defines the command arguments
args:
- migrate
- $NAME
- -n
- $NAMESPACE
- --context
- $CONTEXT