Skip to content

Instantly share code, notes, and snippets.

View webwurst's full-sized avatar

Tobias Bradtke webwurst

View GitHub Profile
#!/bin/bash
# Copyright 2017 Mirantis
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@webwurst
webwurst / Dockerfile
Last active July 10, 2018 08:57
Kubernetes Python Client
FROM python:3.4
WORKDIR /usr/src/app
COPY . /usr/src/app
RUN pip install /usr/src/app
# docker build --tag local/kubernetes .
# docker run -v $HOME/.kube:/root/.kube -v $PWD:$PWD -w $PWD -ti local/kubernetes python
# using scaleway-cli to create a new host

scw create \
  --name kube-1 \
  --commercial-type VC1M \
  --volume 50G \
  --env "kubeadm master" \
### Keybase proof
I hereby claim:
* I am webwurst on github.
* I am webwurst (https://keybase.io/webwurst) on keybase.
* I have a public key whose fingerprint is 67A2 1210 37C2 778A 93E3 1509 EE05 0DCC 3E7E EC71
To claim this, I am signing this object:
@webwurst
webwurst / swarm.json
Last active May 12, 2016 17:13 — forked from designhunger/swarm.json
Including pod definition
{
"name": "magebox",
"components": {
"app": {
"pod": "children",
"expose": [
{
"component": "app/nginx",
"target_port": "80",
"port": "80"
@webwurst
webwurst / leaflet-map-panes-example.html
Created April 13, 2016 18:03
Leaflet Map Münster Stadtteile
<!DOCTYPE html>
<html>
<head>
<title>Leaflet Map Panes Example</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://leafletjs-cdn.s3.amazonaws.com/content/leaflet/master/leaflet.css" />
</head>
{
"template" : "ul-*",
"order" : 90,
"settings" : {
"index" : {
"refresh_interval" : "-1",
"number_of_replicas" : "0"
}
}
}
#
# Ce fichier de configuration Logstash permet d'effectuer la copie d'index soit:
# - à l'intérieur d'un même cluster Elasticsearch
# - entre différents clusters Elasticsearch
#
# Utile dans le cas où nous voulons réindexer un index à l'aide de nouveaux mappings ou pour
# dupliquer la production vers un autre environnement de tests.
#
# Pour invoquer la commande:
# LS_HEAP_SIZE="2048m" /path/to/bin/logstash -w 2 -f copie-elasticsearch.conf