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” …

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

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

Updating kubernetes helm values

helm upgrade -f ingress-controller/values.yml nginx-ingress stable/nginx-ingress Or more generally: helm upgrade -f new-values.yml {release name} {package name or path} –version {fixed-version} The command above does the job. Unless you manually specify the version with the –version {fixed-version} argument, upgrade will also update the chart version. You can find the current chart version with helm ls. … Read more

Ingress configuration for k8s in different namespaces

I would like to simplify the answer a bit further for those who are reletively new to Kubernetes and its ingress options in particular. There are 2 separate things that need to be present for ingress to work: Ingress Controller(essentially a separate Pod/Deployment along with a Service that can be used to utilize routing and … Read more

Get error “unknown field “serviceName” in io.k8s.api.networking.v1.IngressBackend” when switch from v1beta1 to v1 in Kubernetes Ingress

I think that this PR contains the change you’re asking about. `Ingress` and `IngressClass` resources have graduated to `networking.k8s.io/v1`. Ingress and IngressClass types in the `extensions/v1beta1` and `networking.k8s.io/v1beta1` API versions are deprecated and will no longer be served in 1.22+. Persisted objects can be accessed via the `networking.k8s.io/v1` API. Notable changes in v1 Ingress objects … Read more

Ingress vs Load Balancer

Load Balancer: A kubernetes LoadBalancer service is a service that points to external load balancers that are NOT in your kubernetes cluster, but exist elsewhere. They can work with your pods, assuming that your pods are externally routable. Google and AWS provide this capability natively. In terms of Amazon, this maps directly with ELB and … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)