Skip to content

Instantly share code, notes, and snippets.

View etenzy's full-sized avatar

Michael Rödel etenzy

View GitHub Profile
@etenzy
etenzy / node_exporter
Last active October 19, 2022 10:49
Native Prometheus exporter on older Synology NAS
# /etc/sysconfig/node_exporter
OPTIONS="--path.procfs=/proc --path.sysfs=/sys --collector.filesystem.ignored-mount-points "^/(rootfs/)?(dev|etc|host|proc|run|sys|volume1)($$|/)"
@etenzy
etenzy / gist:e2e8143bc10b6805e75f2c21cfd1cc62
Created March 23, 2022 12:57
Schedule pod on specific node
--overrides='{"spec": { "nodeSelector": {"kubernetes.io/hostname": "NODENAME"}}}'
@etenzy
etenzy / .bashrc
Last active February 8, 2022 10:58
CK{AD,A,S} Shell setup
# in most cases this would be already in the bashrc
alias k=kubectl
source <(kubectl completion bash)
complete -F __start_kubectl k
# these exports only work with bash
export do="--dry-run=client -o yaml"
# usage: k run example nginx $do > example.yaml
@etenzy
etenzy / dashboard.json
Created August 17, 2021 14:13
Kubernetes Monitoring Overview
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
### Keybase proof
I hereby claim:
* I am etenzy on github.
* I am etenzy (https://keybase.io/etenzy) on keybase.
* I have a public key ASB7PTj8C1884f5kOnLzJWzjY1OC9g8UYYfp4VdNuP7Ncwo
To claim this, I am signing this object:
cd /Library/Preferences
sudo rm com.sophos.sav.plist

cd /Library/Application\ Support/Sophos/cloud/Installer.app/Contents/MacOS/tools/
sudo ./InstallationDeployer —force_remove
@etenzy
etenzy / docker.tf
Created November 1, 2020 18:47 — forked from phumberdroz/docker.tf
Terraform populate Docker Credentials in all Namespaces
variable "docker_password" {}
data "kubernetes_all_namespaces" "allns" {}
resource "kubernetes_secret" "docker_secrets" {
for_each = toset(data.kubernetes_all_namespaces.allns.namespaces)
metadata {
name = "gitlab-cloud"
namespace = each.value
}
@etenzy
etenzy / home.json
Created October 20, 2020 15:37
Grafana Dashboard
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
@etenzy
etenzy / database.php
Created May 13, 2020 21:56 — forked from tigusigalpa/database.php
Laravel PostgreSQL SSL encryption connection config
<?php
/**
* 1. You have to store your client SSL certificates on your Laravel server, in my case this is /var/certs/mydomain.com/...
* 2. You have to right select SSL mode for PostgreSQL (see https://www.postgresql.org/docs/current/libpq-ssl.html#LIBPQ-SSL-SSLMODE-STATEMENTS), verify-full means your server CA is signed for real domain name for the PostgreSQL server (recommended)
* 3. Go to Laravel config/database.php to the section 'pgsql' and extend it to the following:
*/
return [
/*...*/
'connections' => [
/*'mysql' etc*/
@etenzy
etenzy / minikube.conf
Created May 8, 2020 23:37
minikube + dnsmasq
listen-address=192.168.64.1