Skip to content

Instantly share code, notes, and snippets.

@erpel
erpel / prometheus-operator-values.yaml
Created July 28, 2020 12:38
How to specify extra alert rules for prometheus-operator 9.2.2
additionalPrometheusRulesMap:
infra:
groups:
- name: infra
rules:
- alert: InstanceDown
expr: up == 0
for: 5m
labels:
severity: critical
@erpel
erpel / erpel_v6_cleanup.sh
Created June 7, 2020 20:40
erpel_v6_cleanup
#!/bin/sh
# inet6 ... prefixlen 64 deprecated autoconf pltime 0 vltime 1984906
# inet6 ... prefixlen 64 autoconf pltime 174916 vltime 2162116
# special code to allow hup
COMMAND=ifconfig
LOGFILE=/var/log/erpel_cleanup.log
WAIT_SECONDS=0
while getopts i:dnw arg