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 http://127.0.0.1:8001 you'll see your static content.

Answers

Categories

Upcoming Training