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

[GCE]: SDK node doesn't recognize "kubectl" #1

Closed
AJNOURI opened this issue Aug 19, 2017 · 1 comment
Closed

[GCE]: SDK node doesn't recognize "kubectl" #1

AJNOURI opened this issue Aug 19, 2017 · 1 comment

Comments

@AJNOURI
Copy link
Owner

AJNOURI commented Aug 19, 2017

Each time I install a new SDK node, it doesn't recognize the path "/usr/lib/google-cloud-sdk/bin" to (kubectl, ...)
I have to add it manually to PATH.

It even asks me after component update (gcloud components update), to remove the "old" path "/usr/lib/google-cloud-sdk/bin":

# gcloud container clusters create ...

Creating cluster cluster1...done.
Created [https://container.googleapis.com/v1/projects/gns3-data/zones/us-east1-d/clusters/cluster1].
kubeconfig entry generated for cluster1.
NAME ZONE MASTER_VERSION MASTER_IP MACHINE_TYPE NODE_VERSION NUM_NODES STATUS
cluster1 us-east1-d 1.6.7 X.X.X.X n1-standard-1 1.6.7 1 RUNNING

Updates are available for some Cloud SDK components. To install them,
please run:
$ gcloud components update

Run gcloud update:

# gcloud components update

...
Update done!
...
Updates are available for some Cloud SDK components. To install them,
please run:

...
WARNING: There are older versions of Google Cloud Platform tools on your system PATH.
Please remove the following to avoid accidentally invoking these old tools:

/usr/lib/google-cloud-sdk/bin/dev_appserver.py
/usr/lib/google-cloud-sdk/bin/docker-credential-gcloud
/usr/lib/google-cloud-sdk/bin/git-credential-gcloud.sh
/usr/lib/google-cloud-sdk/bin/bq
/usr/lib/google-cloud-sdk/bin/gcloud
/usr/lib/google-cloud-sdk/bin/gsutil
/usr/lib/google-cloud-sdk/bin/endpointscfg.py

Knowing that, after update these commands are nowhere but in "/usr/lib/google-cloud-sdk/bin/kubectl"

find / -name 'kubectl'

/usr/lib/google-cloud-sdk/bin/kubectl

Is there something wrong with the install/update mechanism that doesn't recognize the location of these tools?


# lsb_release -a

Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty

# gcloud --version

Google Cloud SDK 167.0.0
beta 2017.03.24
bq 2.0.25
core 2017.08.11
gcloud
gsutil 4.27

@AJNOURI AJNOURI self-assigned this Aug 19, 2017
@AJNOURI AJNOURI changed the title Cannot read pod port from Internet SDK node doesn't recognize "kubectl" Aug 19, 2017
@AJNOURI AJNOURI changed the title SDK node doesn't recognize "kubectl" [GCE]: SDK node doesn't recognize "kubectl" Aug 23, 2017
@AJNOURI
Copy link
Owner Author

AJNOURI commented Aug 24, 2017

suplicate of #3

@AJNOURI AJNOURI closed this as completed Aug 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant