Provide an easy way to give static files to apiserver #3559
Labels
co/apiserver
Issues relating to apiserver configuration (--extra-config)
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/feature
Categorizes issue or PR as related to a new feature.
priority/awaiting-more-evidence
Lowest priority. Possibly useful, but not yet enough support to actually get it done.
Is this a BUG REPORT or FEATURE REQUEST?:
FEATURE REQUEST
.Environment:
What happened:
The process to provide static files to apiserver running inside minikube can be very tricky. Please add a simpler way to provide files to apiserver. So if I want to provide a normal flag that has data as string it is very easy, for example to provide the flag
--authorization-mode=RBAC
to apiserver I just have to add--extra-config=apiserver.authorization-mode=RBAC
tominikube start
. But what if the value of the flag is a path to a file? How do I provide that? For that I have to follow a two step process where I have to start the minikube normally then, make file availble in/var/lib/minikube/certs
. This particular location because this dir is mounted inside the apiserver pod at the same location.Then stop minikube and restart it again by adding the flag, for example I wanted to provide apiserver flag
--encryption-provider-config=/var/lib/minikube/certs/encryptionconfig.yaml
, started minikube with--extra-config=apiserver.encryption-provider-config=/var/lib/minikube/certs/encryptionconfig.yaml
.Above steps I have followed from https://suraj.io/post/apiserver-in-minikube-static-configs/
What you expected to happen:
I want an easier way to make the configs available in minikube.
How to reproduce it (as minimally and precisely as possible):
Output of
minikube logs
(if applicable):Detailed steps in https://suraj.io/post/apiserver-in-minikube-static-configs/
The text was updated successfully, but these errors were encountered: