Giter Site home page Giter Site logo

kubectl-pod-inspect's People

Contributors

brettbuddin avatar jpriebe avatar scraly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

giorgosdi scraly

kubectl-pod-inspect's Issues

can't install pod-inspect on linux arm64

Unable to install pod-inspect, getting below error. Could anyone help to install.

[kke:~] kubectl krew install pod-inspect
Updated the local copy of plugin index.
Installing plugin: pod-inspect
W1013 15:03:52.422199 3468 install.go:164] failed to install plugin "pod-inspect": plugin "pod-inspect" does not offer installation for this platform
failed to install some plugins: [pod-inspect]: plugin "pod-inspect" does not offer installation for this platform

[kke:~] uname -a
Linux kke 5.10.124-linuxkit #1 SMP PREEMPT Thu Jun 30 08:18:26 UTC 2022 aarch64 GNU/Linux

[kke:~] kubectl krew version
OPTION VALUE
GitTag v0.4.3
GitCommit dbfefa5
IndexURI https://github.com/kubernetes-sigs/krew-index.git
BasePath /root/.krew
IndexPath /root/.krew/index/default
InstallPath /root/.krew/store
BinPath /root/.krew/bin
DetectedPlatform linux/arm64

get pod events in case pod status is not "running"

I could not see the reason why it's in pending state. So, we have to run k get events to check what is going on exactly.

$ k pod-inspect -l 1000 fluent-bit-h6plp
Pod:  logging / fluent-bit-h6plp
Node:

Phase:     Pending
Reason:
Message:
$ k get events
LAST SEEN   TYPE      REASON             OBJECT                 MESSAGE
2m2s        Warning   FailedScheduling   pod/fluent-bit-h6plp   0/8 nodes are available: 1 Too many pods, 7 node(s) didn't match Pod's node affinity.
47s         Warning   FailedScheduling   pod/fluent-bit-h6plp   0/8 nodes are available: 1 Too many pods, 7 node(s) didn't match Pod's node affinity.

It had better to put .status.conditions in the output of pod-inspect:

$ k get pods fluent-bit-h6plp -o json | jq '.status.conditions'
[
  {
    "lastProbeTime": null,
    "lastTransitionTime": "2021-12-14T06:57:26Z",
    "message": "0/8 nodes are available: 1 Too many pods, 7 node(s) didn't match Pod's node affinity.",
    "reason": "Unschedulable",
    "status": "False",
    "type": "PodScheduled"
  }
]

i.e.,

Phase:     Pending
Reason:
Message:   "0/8 nodes are available: 1 Too many pods, 7 node(s) didn't match Pod's node affinity."

Wdyt? @jpriebe

Can't install pod-inpect on darwin arm64 (Macbook Air M1)

Hi, on my MacBook Air M1 (darwin - arm64),
I can't install pod-inpect plugin :(

$ kubectl krew install pod-inspect
Updated the local copy of plugin index.
...
Installing plugin: pod-inspect
W0415 10:37:06.623486   72112 install.go:164] failed to install plugin "pod-inspect": plugin "pod-inspect" does not offer installation for this platform
F0415 10:37:06.623628   72112 root.go:79] failed to install some plugins: [pod-inspect]: plugin "pod-inspect" does not offer installation for this platform
goroutine 1 [running]:
k8s.io/klog/v2.stacks(0x14000134001, 0x140003c4000, 0x9c, 0xea)
	/home/runner/go/pkg/mod/k8s.io/klog/[email protected]/klog.go:1021 +0xac
k8s.io/klog/v2.(*loggingT).output(0x10127a900, 0x14000000003, 0x0, 0x0, 0x14000266a80, 0x100fed2e5, 0x7, 0x4f, 0x1400017de00)
	/home/runner/go/pkg/mod/k8s.io/klog/[email protected]/klog.go:970 +0x164
k8s.io/klog/v2.(*loggingT).printDepth(0x10127a900, 0x14000000003, 0x0, 0x0, 0x0, 0x0, 0x1, 0x1400026a810, 0x1, 0x1)
	/home/runner/go/pkg/mod/k8s.io/klog/[email protected]/klog.go:733 +0x120
k8s.io/klog/v2.(*loggingT).print(...)
	/home/runner/go/pkg/mod/k8s.io/klog/[email protected]/klog.go:715
k8s.io/klog/v2.Fatal(...)
	/home/runner/go/pkg/mod/k8s.io/klog/[email protected]/klog.go:1489
sigs.k8s.io/krew/cmd/krew/cmd.Execute()
	/home/runner/work/krew/krew/cmd/krew/cmd/root.go:79 +0x224
main.main()
	/home/runner/work/krew/krew/cmd/krew/main.go:25 +0x3c

goroutine 18 [chan receive]:
k8s.io/klog/v2.(*loggingT).flushDaemon(0x10127a900)
	/home/runner/go/pkg/mod/k8s.io/klog/[email protected]/klog.go:1164 +0x70
created by k8s.io/klog/v2.init.0
	/home/runner/go/pkg/mod/k8s.io/klog/[email protected]/klog.go:418 +0x128

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.