A depend-on-docker nvtop container, based on Ubuntu and the do-framework
Run locally using docker:
docker run -it --rm iankoulski/do-nvtop nvtopRun on Kubernetes using kubectl:
kubectl apply -f https://bit.ly/do-nvtop-daemonsetWhen running on Kubernetes, to view metrics, run:
kubectl exec -it $(kubectl get pods | grep htop | head -n 1 | cut -d ' ' -f 1) -- nvtopThis project is configured with defaults which work in most cases. To change the default settings, execute ./config.sh or just edit the .env file. One of the settings in the project is the target orchestrator TO. This setting configures the container to run locally using docker, or on a kubernetes cluster, using kubectl. Switching to a different orchestrator is as simple as configuring the TO setting.
The project contains the following scripts:
config.sh- open the configuration file .env in an editor so the project can be customizedbuild.sh- build the container imagetest.sh- run container unit testspush.sh- push the container image to a registrypull.sh- pull the container image from a registryrun.sh [cmd]- run the container, passing an argument overrides the default commandstatus.sh- show container status - running, exited, etc.logs.sh- tail container logsexec.sh [cmd]- open a shell or execute a specified command in the running container
Please see the LICENSE file for details.