-
Notifications
You must be signed in to change notification settings - Fork 18
k8s.md: improve instructions for minikube #239
Conversation
minikube by default doesn't use any authentication. Unauthenticated API access needs to be enabled in minikube so that forklift-ui proxy can access cluster-api
@michalskrivanek Couldn't we use straight kubectl proxy to provide secure connections to the API server? Certainly worth investigating, I think at some point it would be good discuss a more robust fix for Kubernetes in general (minikube included) when working with UI / noauth. |
@fbladilo I'm not much familiar with how to do that. It's for the services running inside the cluster, would that need a separate pod being deployed with proxy as part of the namespace that would do the proxying? |
@@ -5,6 +5,18 @@ | |||
- **Kubernetes cluster or Minikube v1.17+** | |||
- **Operator Lifecycle Manager (OLM)** | |||
|
|||
Additionally you need to configure Kubernetes API acces control. On minikube you can use ABAC authorization allowing unauthenticated access to API by creating a policy file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally you need to configure Kubernetes API acces control. On minikube you can use ABAC authorization allowing unauthenticated access to API by creating a policy file | |
Additionally you need to configure Kubernetes API access control. On minikube you can use ABAC authorization allowing unauthenticated access to API by creating a policy file |
For running the UI, I installed forklift-operator on minkube [1] using the docs [3] and a script [4] I created a "forklift" user and gave it "cluster-admin" privileges [1], I give it the "forklift" user token K8S_AUTH_BEARER_TOKEN=31ada4fd-adec-460c-809a-9e56ceb75269 AUTH_REQUIRED=false yarn start:dev:remote ( using this approach a user that has access the forklift-UI has access to the resources "forklift" user as access to without providing credentials ) [1] https://github.com/konveyor/forklift-console-plugin/blob/main/scripts/configure-minikube.sh EDIT: |
I'm closing this PR since this repository is going to be archived - if anyone is interested in updating the documentation for minikube, it should be done in https://github.com/kubev2v/forklift |
minikube by default doesn't use any authentication. Unauthenticated
API access needs to be enabled in minikube so that forklift-ui proxy
can access cluster-api