How can I access through ssh to the machine running the Kubernetes Engine?
How can I check a public IP of the machines running the Kubernetes engine?
How can I access through ssh to the machine running the Kubernetes Engine?
How can I check a public IP of the machines running the Kubernetes engine?
How can I access through ssh to the machine running the Kubernetes Engine?
gcloud compute ssh NODE-NAME --zone ZONE
Note: With this you access to the node. You can't access the master node, as it is Google managed.
How can I check a public IP of the machines running the Kubernetes engine?
kubectl get no -o wide
To know master node IP address:
kubectl cluster-info | grep master
Since you are using Google Kubernetes Engine each node is simply a compute engine instance that therefore you can access:
from the console clicking on the button SSH
making use of gcloud compute ssh [...]
command
Here you can find a guide showing you how to do it step to step.
Therefore you will not need to know the public IP address in this case if you are connecting from a terminal where google SDK is installed.
However in order to know the public IP of a node simply check the relative column in the console navigating thorughComputeEngine->Instances
or run $ gcloud compute instances list
On the other hand if you are interested in knowing the public IP of the master you can check it running:
$ kubectl describe endpoints kubernetes
or
$ kubectl cluster-info
...But since it is managed by Google you cannot access it.
Google Kubernetes Engine provides a managed control plane for your Kubernetes cluster. Therefore you don't have access to a particular machine running the control plane that you can access.
The endpoint for your cluster is the address at which the Kubernetes API is exposed and used to control your cluster.