jpriebe / kubectl-pod-inspect Goto Github PK
View Code? Open in Web Editor NEWkubectl plugin to list pod containers' status
License: GNU General Public License v3.0
kubectl plugin to list pod containers' status
License: GNU General Public License v3.0
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
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
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
For an enhanced usability, I'd recommend you to create a Krew Index entry for kubectl-dpod
.
Here's link to the documentation: https://krew.sigs.k8s.io/docs/developer-guide/release/new-plugin/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.