Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Can't find Top command in kubernetes pod

I have a spring-boot application deployed on Kubernetes, I want see the top process on my pod as top is not available currently. Docker image we have used:

    FROM adoptopenjdk/openjdk11:latest
    RUN mkdir /opt/app
    COPY myapp.jar /opt/app
    CMD ["java", "-jar", "/opt/app/myapp.jar"]

Enable top related commands in Kubernetes pod.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You can install top through below command. But you must have root access on pod to run this command.

microdnf install procps

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading