This gist describe how to deploy a K8S LB at OVH and preserve source IP
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/mandatory.yaml
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: my-lb | |
spec: | |
selector: | |
app: my-app | |
ports: | |
- name: http | |
protocol: TCP |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: netrig | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: |
// 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: |
I hereby claim:
To claim this, I am signing this object:
<div class="switch" bootstrap-switch state="user.isAdmin"> | |
<input type="checkbox" /> | |
</div> |