origin icon indicating copy to clipboard operation
origin copied to clipboard

empty config file is reported as no config file `

Open jayunit100 opened this issue 10 years ago • 6 comments

empty config file...

[root@localhost vagrant]# cat /openshift.local.config/master/admin.kubeconfig
[root@localhost vagrant]# oc get nodes --config=/openshift.local.config/master/admin.kubeconfig
error: No configuration file found, please login or point to an existing file:

sais no config file

error: No configuration file found, please login or point to an existing file:
  1. Via the command-line flag --config
  2. Via the KUBECONFIG environment variable
  3. In your home directory as ~/.kube/config

To view or setup config directly use the 'config' command.

jayunit100 avatar Mar 07 '16 16:03 jayunit100

that is working as designed. the alternative is a more confusing error saying "default cluster is not defined" in cases where they actually don't have a config file

liggitt avatar Mar 07 '16 16:03 liggitt

id suggest we don't say "no file found" unless, in fact, there is no file. I realize we dont want to confuse folks, but we dont want to lie either, do we :) ?.. pr below has minor suggested fix.

jayunit100 avatar Mar 07 '16 16:03 jayunit100

error: Missing or incomplete configuration info. Please login or point to an existing, complete config file:

  1. Via the command-line flag --config
  2. Via the KUBECONFIG environment variable
  3. In your home directory as ~/.kube/config

To view or setup config directly use the 'config' command. getting this issue can one solve this please

dhan2vijay avatar Oct 11 '17 11:10 dhan2vijay

downgrade docker to 1.13.1

yum install -y wget git zile nano net-tools docker-1.13.1
bind-utils iptables-services
bridge-utils bash-completion
kexec-tools sos psacct openssl-devel
httpd-tools NetworkManager ntp
python-cryptography python2-pip python-devel python-passlib
java-1.8.0-openjdk-headless "@Development Tools"

Akaronte avatar Feb 29 '20 22:02 Akaronte

hello all, i tried to install the openshift cluster in aws using ocp , in dashboard it shows cluster is ready but am not able to get oc get nodes , and am not able to access the end-url as well , please help me Screenshot from 2021-12-06 15-16-03 Screenshot from 2021-12-06 15-16-12 Screenshot from 2021-12-06 15-16-18

lokeshdevops7023 avatar Dec 06 '21 09:12 lokeshdevops7023

you need a token login in console and oc who -t for show you token after login. with this token you can use the api if you put in authorization header beaber token you need use a software like a postman for use api o curl commands

El lun, 6 dic 2021 a las 10:48, lokeshdevops7023 @.***>) escribió:

hello all, i tried to install the openshift cluster in aws using ocp , in dashboard it shows cluster is ready but am not able to get oc get nodes , and am not able to access the end-url as well , please help me [image: Screenshot from 2021-12-06 15-16-03] https://user-images.githubusercontent.com/83347399/144824503-84d0310c-301c-4c38-84e8-62a8587fa906.png [image: Screenshot from 2021-12-06 15-16-12] https://user-images.githubusercontent.com/83347399/144824511-b10dbc15-b35c-429c-af56-0041677c3a47.png [image: Screenshot from 2021-12-06 15-16-18] https://user-images.githubusercontent.com/83347399/144824515-c886393d-ca25-4bd8-b1da-5cca6977f729.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/openshift/origin/issues/7834#issuecomment-986608672, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZXR3WHOYCMCLJDNW3UB2DUPSBGXANCNFSM4B5LZYCQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Akaronte avatar Dec 07 '21 17:12 Akaronte