Kubernetes: Routing non HTTP Request via Ingress to Container

This is not well supported via the ingress mechanism and is an open issue. There is a work around for tcp or udp traffic using nginx-ingress which will map an exposed port to a kubernetes service using a configmap. See this doc. Start the ingress controller with the tcp-services-configmap (and/or udp-services-configmap) argument. args: – “/nginx-ingress-controller” … Read more

413 error with Kubernetes and Nginx ingress controller

You can use the annotation nginx.ingress.kubernetes.io/proxy-body-size to set the max-body-size option right in your Ingress object instead of changing a base ConfigMap. Here is the example of usage: apiVersion: extensions/v1beta1 kind: Ingress metadata: name: my-app annotations: nginx.ingress.kubernetes.io/proxy-body-size: “50m” …

Nginx Ingress Controller – Failed Calling Webhook

Another option you have is to remove the Validating Webhook entirely: kubectl delete -A ValidatingWebhookConfiguration ingress-nginx-admission I found I had to do that on another issue, but the workaround/solution works here as well. This isn’t the best answer; the best answer is to figure out why this doesn’t work. But at some point, you live … Read more

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

[*] Provided you got kubectl in your pod and have access to the api-server, you can get all endpoint adressess and pass them to curl: kubectl get endpoints <servicename> \ -o jsonpath=”{.subsets[*].addresses[*].ip}” | xargs curl Alternative without kubectl in pod: the recommended way to access the api server from a pod is by using kubectl … Read more