Giter Site home page Giter Site logo

pth's People

Contributors

albatross0 avatar

Watchers

 avatar  avatar

pth's Issues

ss command does not display process information

  • Container-Optimized-OS v1.6.9

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

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.