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

environment KUBECONFIG not working windows #156

Open
si458 opened this issue Jun 24, 2023 · 0 comments
Open

environment KUBECONFIG not working windows #156

si458 opened this issue Jun 24, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@si458
Copy link

si458 commented Jun 24, 2023

setting environment KUBECONFIG seems to add random folder to file name on windows 11?

PS C:\Users\sas_2\Documents\Developer\talos> $env:KUBECONFIG=".\mycluster\kubeconfig"
PS C:\Users\sas_2\Documents\Developer\talos> kubectl openebs version 
2023/06/24 23:23:46 error creating kubernetes client: failed to build Kubernetes clientset: Could not build config from flags: CreateFile mycluster\kubeconfig\.kube\config: The system cannot find the path specified.
Error: exit status 1

PS C:\Users\sas_2\Documents\Developer\talos> kubectl openebs version --kubeconfig ".\mycluster\kubeconfig"
COMPONENT             VERSION
Client                v0.5.0
OpenEBS CStor         3.4.0
OpenEBS Jiva          3.4.0
OpenEBS LVM LocalPV   Not Installed
OpenEBS ZFS LocalPV   Not Installed

EDIT: even if i hard code the kubeconfig file its the same problem

$env:KUBECONFIG="C:\Users\sas_2\Documents\Developer\talos\mycluster\kubeconfig"
PS C:\Users\sas_2\Documents\Developer\talos> kubectl openebs get volumes --cas-type=cstor
2023/07/16 17:10:29 error creating kubernetes client: failed to build Kubernetes clientset: Could not build config from flags: CreateFile C:\Users\sas_2\Documents\Developer\talos\mycluster\kubeconfig\.kube\config: The system cannot find the path specified.
Error: exit status 1
@Abhinandan-Purkait Abhinandan-Purkait added the good first issue Good for newcomers label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants