albatross0 / pth Goto Github PK
View Code? Open in Web Editor NEWpth - Pod Troubleshooting Helper for Kubernetes
License: MIT License
pth - Pod Troubleshooting Helper for Kubernetes
License: MIT License
The pid of nginx is displayed.
$ kubectl run nginx --image=nginx
deployment "nginx" created
$ kubectl get pod -l run=nginx
NAME READY STATUS RESTARTS AGE
nginx-2371676037-gvdbd 1/1 Running 0 31s
$ pth exec nginx-2371676037-gvdbd
pod "pth-nginx-2371676037-gvdbd" created
waiting for debug pod...
[root@pth-nginx-2371676037-gvdbd /]# ss -nltp
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 *:80 *:* users:(("nginx",pid=1,fd=6))
The pid of fluentd is not displayed.
$ kubectl run fluentd --image=fluent/fluentd
deployment "fluentd" created
$ kubectl get pod -l run=fluentd
NAME READY STATUS RESTARTS AGE
fluentd-356052140-q3gh1 1/1 Running 0 1m
$ pth exec fluentd-356052140-q3gh1
pod "pth-fluentd-356052140-q3gh1" created
waiting for debug pod...
[root@pth-fluentd-356052140-q3gh1 /]# ss -nltp
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 *:24224 *:*
[root@pth-fluentd-356052140-q3gh1 /]# ps auxww
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 196 4 ? Ss 04:46 0:00 /usr/bin/dumb-init /bin/sh /bin/entrypoint.sh /bin/sh -c exec fluentd -c /fluentd/etc/${FLUENTD_CONF} -p /fluentd/plugins $FLUENTD_OPT
1000 5 0.0 1.2 76636 21812 ? Sl 04:46 0:00 /usr/bin/ruby /usr/bin/fluentd -c /fluentd/etc/fluent.conf -p /fluentd/plugins
1000 13 0.0 1.3 98868 23312 ? Sl 04:46 0:00 /usr/bin/ruby /usr/bin/fluentd -c /fluentd/etc/fluent.conf -p /fluentd/plugins
root 47 0.0 0.1 11772 2936 pts/0 Ss 04:55 0:00 /bin/bash
root 69 0.0 0.1 47444 3316 pts/0 R+ 04:56 0:00 ps auxww
[root@pth-fluentd-356052140-q3gh1 /]# ls -l /proc/5/fd
ls: cannot open directory /proc/5/fd: Permission denied
[root@pth-fluentd-356052140-q3gh1 /]# ls -l /proc/13/fd
ls: cannot open directory /proc/13/fd: Permission denied
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.