Skip to content

Instantly share code, notes, and snippets.

View d33d33's full-sized avatar

Kevin GEORGES d33d33

View GitHub Profile
@d33d33
d33d33 / service.yml
Created September 26, 2019 15:58
K8S Service
kind: Service
apiVersion: v1
metadata:
name: my-lb
spec:
selector:
app: my-app
ports:
- name: http
protocol: TCP
@d33d33
d33d33 / netrig.yaml
Created September 26, 2019 15:39
netrig
apiVersion: v1
kind: Namespace
metadata:
name: netrig
---
apiVersion: v1
kind: ServiceAccount
metadata:
@d33d33
d33d33 / README.md
Last active March 17, 2021 07:18
OVH ingress LB

OVH ingress LB

This gist describe how to deploy a K8S LB at OVH and preserve source IP

Howto

1. Install the NGINX Ingress Controller

kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/mandatory.yaml
// Time
rnow := false
now := time.Now().UnixNano() / 1000
// Get NOW header
nowh := req.Header.Get("X-Warp10-Now")
if nowh == "*" {
rnow = true
} else if strings.HasPrefix(nowh, "+") || strings.HasPrefix(nowh, "-") {
delta, err := strconv.ParseInt(nowh, 10, 64)
Developer Certificate of Origin Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors. 660 York Street, Suite 102, San Francisco, CA 94110 USA
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
Developer Certificate of Origin Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors. 660 York Street, Suite 102, San Francisco, CA 94110 USA
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
Developer Certificate of Origin Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors. 660 York Street, Suite 102, San Francisco, CA 94110 USA
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
@d33d33
d33d33 / keybase.md
Last active February 27, 2018 18:04

Keybase proof

I hereby claim:

  • I am d33d33 on github.
  • I am d33d33 (https://keybase.io/d33d33) on keybase.
  • I have a public key ASDP2M5k6JOT7ogY0UCVLRIBF7HuPQdTI6fNx4C40RvyAAo

To claim this, I am signing this object:

@d33d33
d33d33 / html
Created December 8, 2013 23:36
AngularJS directive for bootstrap-switch
<div class="switch" bootstrap-switch state="user.isAdmin">
<input type="checkbox" />
</div>