K9scli.io/auto-port-forwards: zorg::5556 # => will default to container zorg port 5556 and local port 5566. # Pod fred apiVersion: v1 kind: Pod metadata: NOTE: This feature/configuration might change in future releases! The available environment variables can refer to the description in the Plugins section. Similarly, referencing environment variables in hotkeys is also supported. You can choose any keyboard shortcuts that make sense to you, provided they are not part of the standard K9s shortcuts list. Not feeling so hot? Your custom hotkeys will be listed in the help view ?.Īlso your hotkeys file will be automatically reloaded so you can readily use your hotkeys as you define them. ShortCut: Shift-S override: true # => will override the default shortcut related action if set to true (default to false) description: Namespaced resources command: "$RESOURCE_NAME $NAMESPACE " keepHistory: true # whether you can return to the previous view ShortCut: Shift-2 description: Xray Deployments command: xray deploy # Hitting Shift-S view the resources in the namespace of your current selection shift-s: ShortCut: Shift-1 description: View deployments command: dp # Hitting Shift-2 navigates to your xray deployments shift-2: ShortCut: Shift-0 description: Viewing pods command: pods # Hitting Shift-1 navigates to your deployments shift-1: # Hitting Shift-0 navigates to your pod view shift-0: # $XDG_CONFIG_HOME/k9s/hotkeys.yaml hotKeys: limits:Ĭpu: 100m memory: 100Mi # Enable TTY tty: true namespace: default # The resource limit to set on the shell pod. image: killerAdmin # The namespace to launch to shell pod into. Default false showTime: false # Provide shell pod customization when nodeShell feature gate is enabled! shellPod: Default false textWrap: false # Toggles log line timestamp info. sinceSeconds: 300 # => tail the last 5 mins. Default 1000 buffer: 500 # Represents how far to go back in the log timeline in seconds. Default 100 tail: 200 # Defines the total number of log lines to allow in the view. keepMissingClusters: false # Logs configuration logger: Setting this flag to true will keep k9s from cleaning up inactive cluster configs. skipLatestRevCheck: false # When altering kubeconfig or using multiple kube configs, k9s will clean up clusters configurations that are no longer in use. noIcons: false # Toggles whether k9s should check for the latest revision from the Github repository releases. (yaml, helm history, describe, value_extender, details, logs) Default false defaultsToFullScreen: false # Toggles icons display as not all terminal support these chars. skin: dracula # => assumes the file skins/dracula.yaml is present in the $XDG_DATA_HOME/k9s/skins directory # Allows to set certain views default fullscreen mode. reactive: false # By default all contexts wil use the dracula skin unless explicitly overridden in the context config file. This option provide for watching on disk artifacts changes and update the UI live Defaults to false. Default false crumbsless: false noIcons: false # Toggles reactive UI. Default false headless: false # Set to true to hide the K9S logo Default false logoless: false # Set to true to hide K9s crumbs. Default false enableMouse: false # Set to true to hide K9s header. When set to true, you will need to exist k9s via the :quit command. Default is false readOnly: false # Toggles whether k9s should exit when CTRL-C is pressed. maxConnRetry: 5 # Indicates whether modification commands like delete/kill/edit are disabled. Default 2secs refreshRate: 2 # Number of retries once the connection to the api-server is lost. Default: '%temp_dir%/k9s-screens-%username%' (k9s info) screenDumpDir: /tmp/dumps # Represents ui poll intervals. Default false liveViewAutoRefresh: false # The path to screen dump. # Enable periodic refresh of resource browser windows. RESOURCE can be one of po, svc, dp, rs, sts, ds, NAMESPACE is optional To kill a resource (no confirmation dialog, equivalent to kubectl delete -now) To delete a resource (TAB and ENTER to confirm) To view and switch to another Kubernetes namespace To view and switch directly to another Kubernetes context (Last used view) To view and switch to another Kubernetes context (Pod view) Key mapping to describe, view, edit, view logs. Switches out your current k9s context!įilter out a resource view given a filter View pods in a given context (New v0.30.0!) View all pods with labels matching app=fred and env=dev View a Kubernetes resource in a given namespace View a Kubernetes resource using singular/plural or short-nameĪccepts singular, plural, short-name or alias ie pod or pods K9s uses aliases to navigate most K8s resources.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |