Skip to content

Instantly share code, notes, and snippets.

View fjudith's full-sized avatar

Florian JUDITH fjudith

  • Canada
View GitHub Profile
@fjudith
fjudith / uuidgen.md
Created April 19, 2017 21:44
uuidgen.exe using Go/Golang

Source

Create a file named uuidgen.go.

package main

import (
    "fmt"
    "log"
 "os/exec"
@fjudith
fjudith / sigil.md
Created May 23, 2017 08:57
Build sigil on Windows

run from docker host "docker ssh default"

sudo docker run -it --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock golang
go get github.com/gliderlabs/sigil
pushd src/github.com/gliderlabs/sigil
sed -i "s#linux#linux,windows#g" ./Makefile
make deps
make install
@fjudith
fjudith / Format-CoreOSDisk.ps1
Last active June 8, 2017 22:23
Powershell workflow script used to format and/or mount attached disk to a Coreos hosts in parallel.
Workflow Format-CoreOSDisk{
PARAM(
[parameter(mandatory=$true,position=0)]
[string[]]
$ComputerName,
[parameter(mandatory=$false,position=1)]
[hashtable]
$HardDrive, #@{'/dev/sdb'='xfs@/mnt/data1';'/dev/sdc'='btrfs@/mnt/data2'}
@fjudith
fjudith / ceph-docker_kubernetes.md
Last active June 14, 2017 21:18
Prepare Coreos for Ceph-Docker on Kubernetes

Prepare Coreos for Ceph-Docker on Kubernetes

Assumptions

This guide relies on the osd-directory method of described in ceph-docker documentation, which assumes that osd dedicated disk is already formatted an mounted in '/home/core/data/ceph/osd'.

Pre-requistes

jinja2-cli on windows

Ceph docker relies on jinja2 for template to generate yaml templates to be deployed in kubernetes Install Python 2.7, then run the following command lines to install jinja2-cli.

Open an Putty/SSH session as to the host dedicated to run portainer root user, then execute the following command line.

This required requires access to docker.sock

docker run -d --privileged -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer-data:/data --name 'portainer' --restart on-failure portainer/portainer
@fjudith
fjudith / git-pull-all.sh
Created February 6, 2018 21:52
Pull all git remote branches
#!/usr/bin/env bash
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
@fjudith
fjudith / K8s_Istio_Wordpress.md
Last active April 6, 2021 03:04
Kubernetes + Istio + Wordpress
@fjudith
fjudith / h2o-kubeflow_guide_fre.md
Last active November 12, 2018 16:40
Guide H2O Kubeflow

H2O + Kubeflow/Kubernetes How-To

Introduction

Ce guide est une transposition du billet de Nicholas PNG publié le 29 Mars 2018 sur le blog h2o.ai dans la solution coreos-kubernetes

https://blog.h2o.ai/2018/03/h2o-kubeflow-kubernetes-how-to/

Attention: Ksonnet est instable sur Git-Bash pour Windows. Il est recommandé d'exécuter les étapes de ce guide dans WSL (Windows Subsystem for Linux).

@fjudith
fjudith / kubernetes_service_session_affinity.md
Last active May 13, 2024 01:10
Enable Session Affinity (a.k.a Sticky Session) to Kubernetes service
@fjudith
fjudith / gitlab-runner.yaml
Created August 3, 2018 04:43
Gitlab-Runner Kubernetes RBAC
apiVersion: v1
kind: Namespace
metadata:
name: gitlab
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: gitlab-runner
namespace: gitlab