Kubernetes events can show some of the issues, but, unfortunately, by default it return unsorted events that is not easy to search.
Continue reading
Category: Without category
Nano – How to remember the cursor position, configure tabs size and etc
A lot of time using nano needs to have features to keep the cursor position and configure space sizes. It’s easy to configure user profile settings for nano that located in ~/.nanorc
Continue reading
Golang – net/http – How to get client IP address (Real-IP)
For net/http library in Golang for logs or ACL or something else need to get real user IP, especially in variant when golang server behind the reverse proxy.
In this case, need to configure a reverse proxy to the pass all needed headers.
Continue reading
Kubernetes – Run cron job manually
If need to run Kubernetes CronJob manually from test purposes or etc, use:
How to get date in UNIX timestamp in BASH
As a part of the bash script for automation sometimes need to get a date in UNIX timestamp format. For this can be used command date.