Skip to content

Instantly share code, notes, and snippets.

View webwurst's full-sized avatar

Tobias Bradtke webwurst

View GitHub Profile
@MikeRalphson
MikeRalphson / openapi-3.0-schema-descs.yaml
Created September 22, 2017 12:46
OpenAPI 3.0.0 schema from PR#1270 with descriptions ported from PR#1236
type: object
required:
- openapi
- info
- paths
properties:
openapi:
type: string
pattern: ^3\.0\.\d(-.+)?$
info:
package main
import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
"os"
)
@philips
philips / users.md
Last active April 5, 2023 14:17
Kubernetes Third-Party Resource Users
@turtlemonvh
turtlemonvh / load_kibana_objects.py
Last active July 1, 2018 09:39
Load kibana objects from json file via command line
#!/bin/env python
help = """
Load kibana dashboards or visualizations exported as json via the kibana ui on the command line.
Example:
$ python load_kibana_dashboards.py export.json 'http://un:pw@localhost:9207'
Posting: Per-node-doc-count (visualization)
{"_index":".kibana","_type":"visualization","_id":"Per-node-doc-count","_version":2,"_shards":{"total":1,"successful":1,"failed":0},"created":false}
@rothgar
rothgar / coredns.yaml
Last active October 28, 2019 22:08
CoreDNS for Kubernetes
apiVersion: v1
kind: ConfigMap
metadata:
name: coredns
namespace: kube-system
data:
Corefile: |
.:53 {
log stdout
health
@terlar
terlar / kubectl.fish
Last active March 11, 2025 14:48
Kubernetes fish completions
# kubernetes - is an open source system for managing containerized
# applications across multiple hosts, providing basic mechanisms for
# deployment, maintenance, and scaling of applications.
# See: https://kubernetes.io
function __kubectl_no_command
set -l cmd (commandline -poc)
if not set -q cmd[2]
return 0
end
#!/bin/env python
import yaml
import sys
import json
import argparse
from subprocess import Popen, PIPE
import argparse
import os
filebeat.yml configuration file (note: the various /rootfs are mounted into the container from the host as read-only volumes):
---
filebeat.prospectors:
- input_type: log
paths:
- /rootfs/var/log/*.log
- /rootfs/var/log/*/*.log
- input_type: log
paths:
@chiefy
chiefy / Dockerfile
Created June 25, 2016 22:28
vault example dockerfile
FROM alpine:latest
ENV \
VAULT_VERSION=0.6.0
RUN \
export VAULT_ZIP=vault_${VAULT_VERSION}_linux_amd64.zip; \
apk update &&\
apk add curl &&\
curl -s https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_SHA256SUMS | grep linux_amd64 > /tmp/vaultsum &&\
[Unit]
Description=Docker Application Container Engine
Documentation=http://docs.docker.com
After=docker.socket early-docker.target network.target
Requires=docker.socket early-docker.target
[Service]
EnvironmentFile=-/run/flannel_docker_opts.env
MountFlags=slave
LimitNOFILE=1048576