DEV Community

Maxime Guilbert
Maxime Guilbert

Posted on • Updated on

How to define a proxy in our kubeconfig file?

In some situations, we should need to use a proxy to do some calls on a Kubernetes cluster. But how can we define it in our kubeconfig file ?


In the parameter clusters[].cluster, you just have to add the parameter proxy-url with a value which uses the following template.



apiVersion: v1
kind: Config
- name: "dev"
    proxy-url: http://user:password@proxy:port
    server: ""
Enter fullscreen mode Exit fullscreen mode

Once updated and saved, you should be able to use your proxy and do some successful calls on your cluster!


I hope it will help you! 🍺

You want to support me?

Buy Me A Coffee

Top comments (0)