Category Archives: Uncategorized

Kubernetes #2 – Metrics Server

Note: This post was updated to actual (0.3.6) version of Kubernetes Metrics Server at 2020.06.10. For using kubectl top command we need metrics server, formally called Heapster. You can find the Kubernetes Metrics server at github: https://github.com/kubernetes-sigs/metrics-serverDocumentation: https://kubernetes.io/docs/tasks/debug-application-cluster/resource-metrics-pipeline You can check the versions at https://github.com/kubernetes-sigs/metrics-server/releases . To innstall the version 0.3.6 execute the following command:… Read More »

Tricks in command line

Serve current directory tree at http://$HOSTNAME:8000/ $ python -m SimpleHTTPServer Currently mounted filesystems in nice layout $ mount | column -t Get your external IP address / host / user agent / port from http://ifconfig.me/ $ curl ifconfig.meor$ curl ifconfig.me/ip$ curl ifconfig.me/host$ curl ifconfig.me/ua$ curl ifconfig.me/port Execute a command at one, given time $ echo… Read More »

Save file to your Nextcloud from bash

Sometimes you need to upload from command line to you Nextcloud storage. You can do it with a simple curl command. At first you have to create a shared directory in your Nextcloud with “Allow upload and editing” share option. You will get a share link for example: https://nextcloud.myserver.com/index.php/s/gz8BS7mtxGbwkQB The string “gz8BS7mtxGbwkQB” will be used… Read More »