kubernetes-ingress

EKS in private Subnet , Load Balancer in public subnet

风格不统一 提交于 2019-12-04 03:59:45
I am running EKS in private subnet and thus unable to create an internet facing load balancer but was able to create Internal LoadBalancer. Is there any way I can create Loadbalancer(probably Manually) in public subnet and point to the pods running in EKS in the private subnet. I was thinking of creating the chain of load balancer in which External load balancer will point to internal load balancer but that too is not possible as the IP address of the internal load balancer is reserved IP. Can I try some other way to route the traffic from the internet to pod? I had the same issue and it was

Path based routing issues Traefik as Ingress Controller

纵饮孤独 提交于 2019-12-03 20:27:58
I'm running through what looks like a configuration issue! I am using traefik as ingress controller within kubernetes and I have an ingress to route some URLs to route some frontends to various backends. Let's say I have something like this: apiVersion: extensions/v1beta1 kind: Ingress metadata: name: test annotations: kubernetes.io/ingress.class: traefik traefik.frontend.rule.type: ReplacePathRegex spec: rules: - host: foo.io http: paths: - path: /api/authservice/(.*) /$1 backend: serviceName: auth servicePort: 8901 - path: /api/svcXXX/v1/files/cover/(.*) /v1/files/cover/$1 backend:

nginx-ingress config map snippets being ignored by the nginx.conf

邮差的信 提交于 2019-12-03 17:17:27
问题 I have a kubernetes cluster, where I have deployed an nginx ingress controller using the helm nginx-ingress chart. I need to add some custom config to the nginx.conf file that is generated in the nginx-controller-pod, and I am seeing an issue where if I add a one line option such as proxy-buffer-size: "512k" I can see this reflected in the nginx.conf file and everything works as expected. However, if I attempt to add a snippet to accomplish the same thing: location-snippet: | proxy_buffer

nginx-ingress config map snippets being ignored by the nginx.conf

爷,独闯天下 提交于 2019-12-03 06:17:38
I have a kubernetes cluster, where I have deployed an nginx ingress controller using the helm nginx-ingress chart . I need to add some custom config to the nginx.conf file that is generated in the nginx-controller-pod, and I am seeing an issue where if I add a one line option such as proxy-buffer-size: "512k" I can see this reflected in the nginx.conf file and everything works as expected. However, if I attempt to add a snippet to accomplish the same thing: location-snippet: | proxy_buffer_size "512k"; It is as though this is ignored by the nginx.conf file and the proxy_buffer_size setting

Kubenetes: Is it possible to hit multiple pods with a single request in Kubernetes cluster

时光总嘲笑我的痴心妄想 提交于 2019-12-03 03:12:06
问题 I want to clear cache in all the pods in my Kubernetes namespace. I want to send one request to the end-point which will then send a HTTP call to all the pods in the namespace to clear cache. Currently, I can hit only one pod using Kubernetes and I do not have control over which pod would get hit. Even though the load-balancer is set to RR, continuously hitting the pods(n number of times, where n is the total number of pods) doesn't help as some other requests can creep in. The same issue was

Kubenetes: Is it possible to hit multiple pods with a single request in Kubernetes cluster

眉间皱痕 提交于 2019-12-02 16:40:52
I want to clear cache in all the pods in my Kubernetes namespace. I want to send one request to the end-point which will then send a HTTP call to all the pods in the namespace to clear cache. Currently, I can hit only one pod using Kubernetes and I do not have control over which pod would get hit. Even though the load-balancer is set to RR, continuously hitting the pods(n number of times, where n is the total number of pods) doesn't help as some other requests can creep in. The same issue was discussed here, but I couldn't find a solution for the implementation: https://github.com/kubernetes

Kubernetes ingress-nginx gives 502 error (Bad Gateway)

坚强是说给别人听的谎言 提交于 2019-12-02 07:01:44
问题 I have an EKS cluster for which I want : - 1 Load Balancer per cluster, - Ingress rules to direct to the right namespace and the right service. I have been following this guide : https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nginx-ingress-with-cert-manager-on-digitalocean-kubernetes My deployments: apiVersion: apps/v1 kind: Deployment metadata: name: hello-world namespace: default spec: replicas: 3 selector: matchLabels: app: hello-world template: metadata: labels: app:

Dynamically adding/removing named hosts from k8s ingress

丶灬走出姿态 提交于 2019-12-02 05:12:09
问题 I'm setting up a k8s cluster on GKE. A wildcard DNS *.server.com will point to a Ingress controller. Internally to the cluster, there will be webserver pods, each exposing a unique service. The Ingress controller will use the server name to route to the various services. Servers will be created and destroyed on a nearly daily basis. I'd like to know if there's a way to add and remove a named server from the ingress controller without editing the whole list of named servers. 回答1: It appears

Ingress and Ingress controller how to use them with NodePort Services?

。_饼干妹妹 提交于 2019-12-02 02:46:58
问题 I have a single service running on a NodePort service. How do i use ingress to access multiple services. deployment.yml apiVersion: apps/v1 kind: Deployment metadata: name: auth spec: replicas: 1 selector: matchLabels: app: auth template: metadata: labels: app: auth tier: backend track: dev spec: containers: - name: auth image: [url]/auth_app:v2 ports: - name: auth containerPort: 3000 service.yml apiVersion: v1 kind: Service metadata: name: auth spec: selector: app: auth tier: backend ports:

Dynamically adding/removing named hosts from k8s ingress

女生的网名这么多〃 提交于 2019-12-02 01:36:12
I'm setting up a k8s cluster on GKE. A wildcard DNS *.server.com will point to a Ingress controller. Internally to the cluster, there will be webserver pods, each exposing a unique service. The Ingress controller will use the server name to route to the various services. Servers will be created and destroyed on a nearly daily basis. I'd like to know if there's a way to add and remove a named server from the ingress controller without editing the whole list of named servers. It appears like you're planning to host multiple domain names on a single Load Balancer (==single Ingress resource). If