kubeless icon indicating copy to clipboard operation
kubeless copied to clipboard

Documentation confusion with KUBELESS_CONFIG and KUBECONFIG

Open cappelaere opened this issue 5 years ago • 3 comments

Is this a BUG REPORT or FEATURE REQUEST?: Documentation BUG

What happened: Documentation mentions to export KUBELESS_CONFIG to point to remote K8s cluster configuration file. It should be KUBECONFIG instead.

cappelaere avatar May 15 '19 17:05 cappelaere

hi @cappelaere,

Thanks for the issue. The parameter KUBELESS_CONFIG is actually used for a different thing. You can use that variable to use a different name for the configMap that Kubeless uses (instead of using the default name kubeless-config.

Do you have a suggestion on how you would understand better that documentation?

andresmgot avatar May 15 '19 18:05 andresmgot

I am not sure I understand what that means and what KUBELESS_CONFIG is used for. May be an example could help? I am not quite there yet… sorry :(

May be we can add in that section the KUBECONFIG env and what it is used for (aka point to remote cluster configuration file such as /etc/kubernetes/admin.conf that you may have copied to your local machine to connect to that remote cluster. I did not find it in the documentation.

Thanks, Pat.

On May 15, 2019, at 2:14 PM, Andres Martinez Gotor [email protected] wrote:

hi @cappelaere https://github.com/cappelaere,

Thanks for the issue. The parameter KUBELESS_CONFIG is actually used for a different thing. You can use that variable to use a different name for the configMap that Kubeless uses (instead of using the default name kubeless-config.

Do you have a suggestion on how you would understand better that documentation?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kubeless/kubeless/issues/1038?email_source=notifications&email_token=AAAB3D64PBATNJXZOSJSQI3PVRHITA5CNFSM4HNFQNAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVPP6JY#issuecomment-492764967, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAB3D26OKLK6LKGILLS2N3PVRHITANCNFSM4HNFQNAA.

cappelaere avatar May 15 '19 18:05 cappelaere

KUBELESS_CONFIG holds the name of the ConfigMap for Kubeless controller configuration.

$ kubectl get cm -n kubeless 
NAME              DATA   AGE
kubeless-config   10     3d23h

The default is kubeless-config, but you can change that name to allow multiple Kubeless instances to run on the same cluster, each one with different configurations.

juliohm1978 avatar Apr 28 '20 15:04 juliohm1978