Skip to content

Instantly share code, notes, and snippets.

View dduportal's full-sized avatar

Damien Duportal dduportal

View GitHub Profile
@dduportal
dduportal / start-pi-lab-net.sh
Last active November 29, 2018 21:15
Pi3: Sharing WiFi connexion to a bridge (eth + wifi)
#!/bin/bash
set -e
set -u
set -x
WIFI_INTERFACE=wlan0
VIRT_WIFI_INTERFACE=wlan1
BRIDGE_INTERFACE=br0
ETH_INTERFACE=eth0

Keybase proof

I hereby claim:

  • I am dduportal on github.
  • I am dduportal (https://keybase.io/dduportal) on keybase.
  • I have a public key ASDpfUh-lG88MGJvbsk6tpikZ_po_EoR9oEyugcWYgq3CQo

To claim this, I am signing this object:

@dduportal
dduportal / README.md
Last active September 24, 2021 01:35
Kubernetes on Raspberry Pis

Kubernetes 1.13 on Raspberry Pis

This tutoriel is HEAVILY inspired by https://gist.github.com/alexellis/fdbc90de7691a1b9edb545c17da2d975, but adapted (docker/kubernetes versions + custom scripts + a hacky "background script" to tune the timeout of Kubeadm)

Requirements

  • Hypriot 1.9.x (1.10 not tested yet because rc)
  • Kernel >= 4.14.54
  • Raspberry Pis
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: tiller
@dduportal
dduportal / Q&A.adoc
Last active February 27, 2019 16:12
Q&A of Traefik Online Meetup #1: Keep the Routing Simple

Q&A of Traefik Online Meetup #1: Keep the Routing Simple

Question: Doesn’t the web container need to use dynamic ports, and not port 80?

Answer: A container doesn’t need to publish/forward to any port on the outside. It listens on a port, for example, port 80, from its own private IP address, inside the Docker private network. The value of Traefik is to route requests from the outside on a chosen port, for example, port 80 or 443, of the public address, to the private IP address of the web server. Traefik watches for Docker’s API to get this private IP, and for any change of this private IP (e.g. on a container reboot). Also, you can have as many containers as you want, listening on their own port 80 without any conflict: useful for blue/green deployments, for example. You can find more information here: https://docs.Traefik.io/v1.7/basics/#concepts.


Question: Could you create the Jenkins link also with a Host:jenkins.demo.containous.cloud, and no other option (i.e. no tweak on Jenkins, no

@dduportal
dduportal / Q & A.adoc
Last active April 1, 2019 07:35
Q & A Online Meetup: Back to Traefik 2.0 - Gigawatts of Routing Power
@dduportal
dduportal / docker-compose.yml
Created April 16, 2019 15:17
Traefik Path examples
version: '2.4'
services:
lb:
image: traefik:1.7.10
command:
- "--docker.domain=localhost"
- "--api"
ports:
- "80:80"
version: '3.4'
networks:
front:
docker-sock:
services:
lb:
image: traefik:1.7.11
command:
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: traefik-ingress-controller
namespace: kube-system
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
@dduportal
dduportal / README.md
Last active May 29, 2019 21:50
traefik-cloudbees-jenkins

CloudBees Jenkins License Wizard Issue with Traefik and Firefox

Requirements

  • Docker Engine
  • docker-compose

Prepare Environment

With the docker-compose.yml file provided in this gist,