Last active
November 7, 2018 17:20
-
-
Save gerred/0515d45094b52ba3d19e1458b2dc9943 to your computer and use it in GitHub Desktop.
ingress-lb.json
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
{ | |
"apiVersion": "V2", | |
"name": "k8s-ingress-proxy-2", | |
"count": 2, | |
"haproxy": { | |
"stats": { | |
"bindPort": 6091 | |
}, | |
"frontends": [ | |
{ | |
"bindPort": 80, | |
"protocol": "TCP", | |
"linkBackend": { | |
"defaultBackend": "kubernetes-ingress-backend-http" | |
} | |
}, | |
{ | |
"bindPort": 443, | |
"protocol": "TCP", | |
"linkBackend": { | |
"defaultBackend": "kubernetes-ingress-backend-https" | |
} | |
}, | |
{ | |
"bindPort": 8080, | |
"protocol": "TCP", | |
"linkBackend": { | |
"defaultBackend": "kubernetes-temporary-ingress-backend-http" | |
} | |
}, | |
{ | |
"bindPort": 9443, | |
"protocol": "TCP", | |
"linkBackend": { | |
"defaultBackend": "kubernetes-temporary-ingress-backend-https" | |
} | |
}, | |
], | |
"backends": [ | |
{ | |
"name": "kubernetes-ingress-backend-http", | |
"protocol": "TCP", | |
"services": [ | |
{ | |
"endpoint": { | |
"type": "ADDRESS", | |
"address": "kube-node-0-kubelet.kubernetes.mesos", | |
"port": 31213 | |
} | |
}, | |
{ | |
"endpoint": { | |
"type": "ADDRESS", | |
"address": "kube-node-1-kubelet.kubernetes.mesos", | |
"port": 31213 | |
} | |
}, | |
{ | |
"endpoint": { | |
"type": "ADDRESS", | |
"address": "kube-node-2-kubelet.kubernetes.mesos", | |
"port": 31213 | |
} | |
} | |
] | |
}, | |
{ | |
"name": "kubernetes-ingress-backend-https", | |
"protocol": "TCP", | |
"services": [ | |
{ | |
"endpoint": { | |
"type": "ADDRESS", | |
"address": "kube-node-0-kubelet.kubernetes.mesos", | |
"port": 31328 | |
} | |
}, | |
{ | |
"endpoint": { | |
"type": "ADDRESS", | |
"address": "kube-node-1-kubelet.kubernetes.mesos", | |
"port": 31328 | |
} | |
}, | |
{ | |
"endpoint": { | |
"type": "ADDRESS", | |
"address": "kube-node-2-kubelet.kubernetes.mesos", | |
"port": 31328 | |
} | |
} | |
] | |
}, | |
{ | |
"name": "kubernetes-temporary-ingress-backend-http", | |
"protocol": "TCP", | |
"services": [ | |
{ | |
"endpoint": { | |
"type": "ADDRESS", | |
"address": "kube-node-0-kubelet.kubernetes-temporary.mesos", | |
"port": 31628 | |
} | |
}, | |
{ | |
"endpoint": { | |
"type": "ADDRESS", | |
"address": "kube-node-1-kubelet.kubernetes-temporary.mesos", | |
"port": 31628 | |
} | |
}, | |
{ | |
"endpoint": { | |
"type": "ADDRESS", | |
"address": "kube-node-2-kubelet.kubernetes-temporary.mesos", | |
"port": 31628 | |
} | |
} | |
] | |
}, | |
{ | |
"name": "kubernetes-temporary-ingress-backend-https", | |
"protocol": "TCP", | |
"services": [ | |
{ | |
"endpoint": { | |
"type": "ADDRESS", | |
"address": "kube-node-0-kubelet.kubernetes-temporary.mesos", | |
"port": 31374 | |
} | |
}, | |
{ | |
"endpoint": { | |
"type": "ADDRESS", | |
"address": "kube-node-1-kubelet.kubernetes-temporary.mesos", | |
"port": 31374 | |
} | |
}, | |
{ | |
"endpoint": { | |
"type": "ADDRESS", | |
"address": "kube-node-2-kubelet.kubernetes-temporary.mesos", | |
"port": 31374 | |
} | |
} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment