Category Archives: Administration

Kubernetes’ cronjobs

That’s what it is — Get all cronjobs in env:

Get info on exact cronjob:

Get pods with this cronjob:

Get logs of cronjob

you can add -f for live updating logs and -p for watching logs of previous pod.

Crontab time format

That’s about it: min hour day/month month day/week Execution time 30 0 1 1,6,12 * — 00:30 Hrs  on 1st of Jan, June & Dec. 0 20 * 10 1-5 –8.00 PM every weekday (Mon-Fri) only in Oct. 0 0 1,10,15 * * — midnight on 1st ,10th & 15th of month 5,10 0 10 …

Read more

docker-compose example for ceph, kafka, postgres cluster

That is how it can be done:

docker simple starter

Build and run (on linux do not forget sudo):

Login into container

Pipeline view in shell

grep, zgrep, less and zless regexp examples

Grep all files with mask:

Grep all zipped files with mask:

Less all files with mask:

Grep all zipped files with mask:

Tail all files with mask:

Search for occurencies in directory with grep

git squash variants

If you just want to squash all commits into one. 1. The simplest way: If you have a message like ‘error: failed to push some refs to’, add —force to the last command.

Check ssl certificates on a host

If it says something like gethostbyname failure then try following. It needs socat, which can be installed on macOs like this — brew install socat. Then in one terminal open

and in another terminal:

Check availability and version of a package in Ubuntu