Welcome to the Linux Foundation Forum!

Static files in kubectl proxy


Good morning!

I'm playing around with kubectl proxy.

I've been trying to find examples for how static files might be used. I'm not finding anything. A static files directory can be added like this:

kubectl proxy --www=/my/files

But what is the use case?

Best Answer

  • oleksazhel
    oleksazhel Posts: 57
    Answer ✓

    @pnts For example you want to post some warning in root and move kates resources to another path. Something like that kubectl proxy --www=/tmp/static --www-prefix=/ --api-prefix=/k8s-api. Now if you curl like curl -L you'll see your static content.



Upcoming Training