Files for setting up a test for restic assume role
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PUSHOVERUSER=$1 | |
PUSHOVERTOKEN=$2 | |
PUSHOVERTITLE=$3 | |
PUSHOVERMESSAGE=$4 | |
curl -XPOST \ | |
-F "token=${PUSHOVERTOKEN}" \ | |
-F "user=${PUSHOVERUSER}" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: Erik Kristensen | |
# Email: erik@erikkristensen.com | |
# License: MIT | |
# Nagios Usage: check_nrpe!check_docker_container!_container_id_ | |
# Usage: ./check_docker_container.sh _container_id_ | |
# | |
# Depending on your docker configuration, root might be required. If your nrpe user has rights | |
# to talk to the docker daemon, then root is not required. This is why root privileges are not |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"packageRules": [ | |
{ | |
"matchDatasources": [ | |
"go", | |
"docker" | |
], | |
"groupName": "kubernetes", | |
"groupSlug": "kubernetes", | |
"matchPackagePatterns": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Swap pod for any resource you need to iterate over. (ie daemonset, deployment) | |
kubectl get pods --all-namespaces | tail -n+2 | awk '{print $1 " " $2}' | xargs -L1 bash -c "kubectl patch -n \$0 pod/\$1 --type=merge -p \$(kubectl get -n \$0 pod/\$1 -o json | jq -Mcr '.metadata.finalizers // [] | {metadata:{finalizers:map(select(. != \"name-of-bad-finalizer\"))}}')" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -- Default volume mounts. Corresponds to `volumes`. | |
# @default -- See `values.yaml` | |
defaultVolumeMounts: | |
- name: run | |
mountPath: /run/promtail | |
- name: containers | |
mountPath: /var/lib/docker/containers | |
readOnly: true | |
- name: pods | |
mountPath: /var/log/pods |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Changes by Erik Kristensen | |
# | |
# Changelog (2018/01/31) | |
# - Improved debugging, just set DEBUG=true in shell env | |
# - Can set critical, warning and service name via ENV vars or command line opts | |
# - Improved if statements for checking warning, critical conditions | |
# - Errors unknown if `bc` command line tool is not installed | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- encoding: utf-8 -*- | |
""" | |
Small module for use with the wake on lan protocol. | |
""" | |
from __future__ import absolute_import | |
from __future__ import unicode_literals | |
import argparse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var restify = require('restify'); | |
var restify_endpoints = require('restify-endpoints'); | |
var endpoints = new restify_endpoints.EndpointManager({ | |
endpointpath: __dirname + '/endpoints' | |
}); | |
// Create the RESTful Server | |
var server = restify.createServer(); |
NewerOlder