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.
>Solution :
You can install top through below command. But you must have root access on pod to run this command.
microdnf install procps