-2
je cette commande:Lorsque je tente de lancer la commande kubectl par sshpass, il a échoué avec Impossible de se connecter au serveur
sshpass -p password ssh [email protected] 'date;kubectl get pod;date'
Je suis:
Wed Sep 20 14:39:19 CST 2017
Unable to connect to the server: EOF
Wed Sep 20 14:39:20 CST 2017
Comment résoudre ce problème?
Toutes les commandes kubectl fonctionnent bien sur le système cible. Commande:
sshpass -p password ssh [email protected] 'kubectl'
aussi bien travailler:
mynode /etc » sshpass -p password ssh -o StrictHostKeyChecking=no [email protected] "kubectl"
kubectl controls the Kubernetes cluster manager.
Find more information at https://github.com/kubernetes/kubernetes.
Basic Commands (Beginner):
create Create a resource by filename or stdin
expose Take a replication controller, service, deployment or pod and expose it as a new Kubernetes Service
run Run a particular image on the cluster
set Set specific features on objects
Basic Commands (Intermediate):
get Display one or many resources
explain Documentation of resources
edit Edit a resource on the server
delete Delete resources by filenames, stdin, resources and names, or by resources and label selector
...
vous pouvez voir passer le fichier de configuration de K8S et de le tester. 'kubectl --kubeconfig = chemin de config de kube – sfgroups
Je suis désolé je ne comprends pas votre point et j'ai oublié de fournir des informations importantes. S'il vous plaît voir la question ci-dessus. – Lior