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 | |
import os | |
import sys | |
from base64 import b64encode | |
def walk_through_files(path): | |
for (dirpath, dirnames, filenames) in os.walk(path): | |
for filename in filenames: | |
if os.path.isdir("{}/{}".format(dirpath, filename)): | |
continue |
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
### Keybase proof | |
I hereby claim: | |
* I am bpineau on github. | |
* I am bpineau (https://keybase.io/bpineau) on keybase. | |
* I have a public key whose fingerprint is 5CAF 030F 4980 F583 8F43 1941 C73C 0EE8 C694 D2D8 | |
To claim this, I am signing this object: |
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
/* Terraform setup to evaluate kafka performances on various aws instances types and ebs sizes */ | |
provider "aws" { | |
region = "eu-west-1" | |
} | |
variable "ssh_key_name" { | |
default = "ben@ici" | |
} |
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
# Un exemple de service+deployment/rc/rs tested-qui-marche, qui cree un ELB pour un service | |
# de type "LoadBalancer", et qui sait attacher tout seul un volume EBS. | |
# Teste sur un cluster AWS (2 nodes t2.micro) en kubernetes 1.3 cree avec kube-up.sh. | |
# kubectl create -f ce_fichier.yaml | |
# kubectl get pods -o wide # reperer le node hote | |
# se connecter au node, et faire | |
# echo plop >/var/lib/kubelet/plugins/kubernetes.io/aws-ebs/mounts/aws/eu-west-1a/vol-ba8fae39/index.html | |
# kubectl describe svc nginxsvc # reperer le nom du ELB, et faire un curl dessus | |
# kubectl get pods -o wide # reperer le nom du node |
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
# Routage/multiplexage HTTP dans kubernetes avec des Ingress et Traefik. | |
# | |
# On lance deux apps, sur les domaines, respectivement, foo.local et bar.local. | |
# | |
# Devant l'ingress controller, on utilise un service de type 'NodePort', qui | |
# choisir un port dans le range 30000-32767 et l'exposera sur les nodes. | |
# | |
# Si on commente la ligne 'NodePort' et on decommente la ligne 'LoadBalancer', | |
# kubernetes vas configurer un ELB AWS automatiquement pour renvoyer tout les | |
# flux http sur le service kubernetes traefik-lb-svc. |
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
Original patch written by Cyril Bonte for HAProxy 1.4.10. Forward ported to HAProxy 1.4.19. | |
diff -ru haproxy-1.4.19-orig/doc/configuration.txt haproxy-1.4.19/doc/configuration.txt | |
--- haproxy-1.4.19-orig/doc/configuration.txt 2012-01-08 00:15:29.000000000 +0100 | |
+++ haproxy-1.4.19/doc/configuration.txt 2012-02-06 22:23:48.630434446 +0100 | |
@@ -1337,6 +1337,7 @@ | |
bind [<address>]:<port_range> [, ...] id <id> | |
bind [<address>]:<port_range> [, ...] name <name> | |
bind [<address>]:<port_range> [, ...] defer-accept | |
+bind [<address>]:<port_range> [, ...] accept-proxy |