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

Open
surajssd opened this Issue Jan 20, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@surajssd
Copy link
Member

surajssd commented Jan 20, 2019

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment