xcode K9s无法打开,因为找不到“po”命令

d8tt03nd  于 2023-02-25  发布在  其他
关注(0)|答案(2)|浏览(131)

我在工作期间使用k9 s,当我尝试启动它时,我收到错误消息:
Boom!! app run failed 'po' command not found.
我搜索了如何重新安装“po”命令,但没有找到有用的信息。我尝试在我的机器上重新安装xcode-select,但仍然不工作。
我这边的k9 s的配置文件如下所示

k9s:
  refreshRate: 2
  maxConnRetry: 5
  enableMouse: false
  headless: false
  logoless: false
  crumbsless: false
  readOnly: false
  noIcons: false
  logger:
    tail: 100
    buffer: 5000
    sinceSeconds: 60
    fullScreenLogs: false
    textWrap: false
    showTime: false
  currentContext: xxxx/yyyy
  currentCluster: xxxx/yyyy
  clusters:
    xxxx/yyyy:
      namespace:
        active: default
        favorites:
        - default
      view:
        active: po
      featureGates:
        nodeShell: false
      shellPod:
        image: busybox:1.31
        command: []
        args: []
        namespace: default
        limits:
          cpu: 100m
          memory: 100Mi
      portForwardAddress: localhost
  thresholds:
    cpu:
      critical: 90
      warn: 70
    memory:
      critical: 90
      warn: 70
  screenDumpDir: /var/folders/rl/_xgz4l291pq2ljx1p7x8l5sm0000gn/T/k9s-screens-name

我猜问题出在配置文件的部分

view:
        active: po

有人能帮忙吗?谢谢

aiqt4smr

aiqt4smr1#

尝试以下命令:

> brew remove k9s
 > rm -rf /Users/home-folder/.config/k9s
 > rm -rf /Users/home-folder/Library/Application\ Support/k9s
 > brew install k9s
dphi5xsq

dphi5xsq2#

在k9s config.yml中,我相信他们正在试图保存最后一次查看的命令,如果这不再有效,它就会失败,理想情况下,这应该得到优雅的处理。

变通

# edit config.yml
# following is Mac OS path. Equivalent paths in other OS
vim ~/Library/Application\ Support/k9s/config.yml
  • 找到出错的命令。,在您的情况下
...
view:
     active: po

# change this to something generic
...
view:
     active: pods
  • 保存config.yml并尝试重新打开k9s

相关问题