kubernetes-ingress

What's the difference between exposing nginx as load balancer vs Ingress controller?

喜夏-厌秋 提交于 2019-11-29 01:42:40
问题 I understood Ingress can be used when we want to expose multiple service/routes with a single Load Balancer / public IP. Now I want to expose my Nginx server to public. I have two choices Set service type as LoadBalancer voila I got public IP Use Nginx Ingress Controller Now I can get my job done with Option 1 when or why would I choose Option 2 whats the advantage of having nginx with Ingress without Ingress ? 回答1: There is a difference between ingress rule (ingress) and ingress controller .

Implementing workaround for missing http->https redirection in ingress-gce with GLBC

一世执手 提交于 2019-11-28 09:09:28
问题 I am trying to wrap my brain around the suggested workarounds for the lack of built-in HTTP->HTTPS redirection in ingress-gce, using GLBC. What I am struggling with is how to use this custom backend that is suggested as one option to overcome this limitation (e.g. in How to force SSL for Kubernetes Ingress on GKE). In my case the application behind the load-balancer does not itself have apache or nginx, and I just can't figure out how to include e.g. apache (which I know way better than nginx

ingress-nginx - create one ingress per host? Or combine many hosts into one ingress and reload?

房东的猫 提交于 2019-11-28 01:36:51
问题 I'm building a service where users can build web apps - these apps will be hosted under a virtual DNS name *.laska.io For example, if Tom and Jerry both built an app, they'd have it hosted under: tom.laska.io jerry.laska.io Now, suppose I have 1000 users. Should I create one big ingress that looks like this? apiVersion: extensions/v1beta1 kind: Ingress metadata: name: nginx-ingress annotations: kubernetes.io/ingress.class: nginx nginx.ingress.kubernetes.io/ssl-redirect: "false" spec: rules: -

How to get Kubernetes Ingress Port 80 working on baremetal single node cluster

荒凉一梦 提交于 2019-11-27 12:29:15
问题 I have a bare-metal kubernetes ( v1.11.0 ) cluster created with kubeadm and working fine without any issues. Network with calico and made it a single node cluster using kubectl taint nodes command. (single node is a requirement). I need to run mydockerhub/sampleweb static website image on host port 80. Assume the IP address of the ubuntu server running this kubernetes is 192.168.8.10. How to make my static website available on 192.168.8.10:80 or a hostname mapped to it on local DNS server?

Kubernetes: Routing non HTTP Request via Ingress to Container

喜欢而已 提交于 2019-11-27 06:12:21
问题 I use a local kubernetes bundled with docker on Mac OS. I've installed the nginx-ingress-controller. I manged to send external http request via ingress to my kubernetes managed containers (e.g. from my local browser). All request are sent via the nginx ports 80 or 443. The problem is, that I can only route http or https requests via my ngnix controller. How can I send non HTTP Requests (e.g. database or corba) via ingress to my containers? 回答1: This is not well supported via the ingress

How to force SSL for Kubernetes Ingress on GKE

久未见 提交于 2019-11-26 11:16:19
问题 Is there a way to force an SSL upgrade for incoming connections on the ingress load-balancer? Or if that is not possible with, can I disable port :80? I haven\'t found a good documentation pages that outlines such an option in the YAML file. Thanks a lot in advance! 回答1: https://github.com/kubernetes/ingress-gce#frontend-https You can block HTTP through the annotation kubernetes.io/ingress.allow-http: "false" or redirect HTTP to HTTPS by specifying a custom backend. Unfortunately GCE doesn't