Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide an easy way to give static files to apiserver #3559

Closed
surajssd opened this issue Jan 20, 2019 · 3 comments
Closed

Provide an easy way to give static files to apiserver #3559

surajssd opened this issue Jan 20, 2019 · 3 comments
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.

Comments

@surajssd
Copy link
Member

Is this a BUG REPORT or FEATURE REQUEST?:

FEATURE REQUEST.

Environment:

minikube version: v0.33.1

OS:
NAME="Ubuntu"
VERSION="16.04.5 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.5 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

VM driver:
    "DriverName": "kvm2",

ISO version
        "Boot2DockerURL": "file:///home/surajd/.minikube/cache/iso/minikube-v0.33.1.iso",
        "ISO": "/home/surajd/.minikube/machines/minikube/boot2docker.iso",

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 to minikube 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/

@tstromberg tstromberg added 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. co/apiserver Issues relating to apiserver configuration (--extra-config) labels Jan 23, 2019
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 29, 2019
@surajssd
Copy link
Member Author

surajssd commented May 7, 2019

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 7, 2019
@tstromberg
Copy link
Contributor

This is now documented: https://github.com/kubernetes/minikube/blob/master/docs/syncing-files.md

Thank you for your patience! Please re-open this issue and/or make changes to the documentation if it is not sufficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

4 participants