In K9s𝞪 you can define your very own command aliases (short-names) to access your favorite Kubernetes resources. Custom aliases reside in a file called $XDG_CONFIG_HOME/.config/k9s-alpha/aliases.yaml. A K9s𝞪 alias is defined via a pair alias-name:GVR. A GVR (Group/Version/Resource) represents a fully qualified Kubernetes resource identifier using the plural form of a resource name.


Using this alias file, you can now type pp/crb to list pods or ClusterRoleBindings respectively.

# $XDG_CONFIG_HOME/.config/k9s-alpha/aliases.yaml
  # Use pp as an alias for Pod
  pp: v1/pods

  # Use crb as an alias for ClusterRoleBinding

  # Use cr as an alias for ClusterRole

  # Use dep as an alias for Deployments
  dep: apps/v1/deployments

  # Use fred as an alias for CRD Frederick


© 2021 Imhotep Software LLC. All materials licensed under Apache v2.0