Volume mounts not working Kubernetes and WSL 2 and Docker

According to the following thread, hostPath volumes are not officially supported for wsl2, yet. They do suggest a workaround, though I had trouble getting it to work. I have found that prepending /run/desktop/mnt/host/c seems to work for me. // C:\someDir\volumeDir hostPath: path: /run/desktop/mnt/host/c/someDir/volumeDir type: DirectoryOrCreate Thread Source: https://github.com/docker/for-win/issues/5325 Suggested workaround from thread: https://github.com/docker/for-win/issues/5325#issuecomment-567594291

How to read client IP addresses from HTTP requests behind Kubernetes services?

As of 1.5, if you are running in GCE (by extension GKE) or AWS, you simply need to add an annotation to your Service to make HTTP source preservation work. … kind: Service metadata: annotations: service.beta.kubernetes.io/external-traffic: OnlyLocal … It basically exposes the service directly via nodeports instead of providing a proxy–by exposing a health probe … 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” …

How to access/expose kubernetes-dashboard service outside of a cluster?

The offical wiki is a little bit confusing so I reordered it here: If you use the recommended yaml to deploy the dashboard, you should only access your dashboard by https, and you should generate your certs, refer to guide. Then you can run kubectl proxy –address=”0.0.0.0″ –accept-hosts=”^*$” to visit the dashboard on “http://localhost:8001/ui”. This … Read more