Kubernetes Monitoring With Icinga2

History In our company we use for monitoring Icinga2. And everything was ok until it came to Kubernetes. As everyone know, best tool for Kubernetes monitoring is Prometheus. But I wanted to keep monitoring and alerting in Icinga2. I started looking in Internet for existing solution to monitor Kubernetes with Icinga2. And in the end found tools written by guys from Nexinto. They created two applications: check_kubernetes application to run checks kubernetes_icinga - daemon which scan Kubernetes cluster and automatically change Icinga2 configuration through API Details about applications check_kubernetes Usage of /usr/lib/nagios/plugins/check_kubernetes: -alsologtostderr log to standard error as well as files -kubeconfig string kubeconfig location -log_backtrace_at value when logging hits line file:N, emit a stack trace -log_dir string If non-empty, write log files in this directory -logtostderr log to standard error instead of files -name string name of object to check -namespace string namespace of object (default "default") -stderrthreshold value logs at or above this threshold go to stderr -type string type of object to check -v value log level for V logs -vmodule value comma-separated list of pattern=N settings for file-filtered logging This application perform only simple checks for:...

March 29, 2018 · 3 min · Dmytro Prokhorenkov

Running Blog With Hugo

Introduction I wanted to migrate my blog from Wordpress to statically generated HTML blog. But on the other hand I wanted to keep history of all my changes in blog. Finally I decided to go with Git repo for files and Hugo as file generator. To automate generation and deployment of site I’m using GitLab and its CI. Overview Here is how looks like my setup for blog: Files are hosted on personal VM Blog content is hosted in a private repo at VM with GitLab DNS for my zone is hosted in Cloudflare Theme for site is included as git submodule into repo After editing something or adding content I commit and push changes to repository When content is pushed to GitLab instance CI runs pipeline to build site GitLab CI contains two steps: Building and generation site artifact Pushing site artifact to web server As example I used this article....

March 24, 2018 · 2 min · Dmytro Prokhorenkov