AWS – Script to get metrics from CloudWatch

Python3 sample script to get metrics from AWS CloudWatch. In the example, we get the maximum value in the last minute and display only the value, this is necessary if you want to collect metrics for example in Zabbix.   Script:

Jenkins – Kubeconfig

  To store and switch between Kubernetes configurations, you can use the Kubernetes CLI plugin, to work with it, “kubectl” must be installed in the system Install the plugin Go to “Manage Jenkins”   Section “Manage Plugins”   Go to the “Available” tab and in the search indicate “Kubernetes CLI” Install it.   Add Kubernetes … Continue reading "Jenkins – Kubeconfig"

Jenkins – Add new path to PATH

  To add the path to the Jenkins environment globally, without doing this every time in Pipeline, we’ll go to the Jenkins settings   Next is the tab “Configure System”   Find the “Global properties” block, check the “Environment variables” checkbox. And we add a variable with the name “PATH + EXTRA” and the value … Continue reading "Jenkins – Add new path to PATH"

Helm – Creating Secret from Variable

  In order to save the value of the variable as Secret, the variable must be encoded in base64, for this we use “_helpers.tpl” For example, we need to save the value of the variable “applicationSecret” values.yaml:   Add the following to “_helpers.tpl“: _helpers.tpl:   Now in the “templates” directory, create the file “secret.yaml” secret.yaml: