kubectl giving error saying path nor exist or TLS handshake timeout error

0 votes

When I try to use any of the kubectl commands, I get the following error

path does not exist
TLS handshake timeout


ubuntu@ip-172-31-84-18:~$ sudo vi /etc/kubernetes/manifests/deployment-frontend.yaml
ubuntu@ip-172-31-84-18:~$ kubectl create -f deploy-frontend.yaml
error: the path "deploy-frontend.yaml" does not exist
ubuntu@ip-172-31-84-18:~$ kubectl create -f /etc/kubernetes/manifests/deployment-frontend.yaml
deployment.extensions/frontend created
ubuntu@ip-172-31-84-18:~$ kubectl create service nodeport frontend  –-tcp=80:8888
error: exactly one NAME is required, got 2
See 'kubectl create service nodeport -h' for help and examples.
Dec 20, 2018 in Kubernetes by Ali
• 11,330 points
Can i please get some more details like logs

1 answer to this question.

0 votes

As I can see from the console log that the command you are running to create the service is not correct. Run the below command to create a service for frontend.

kubectl create service nodeport front-end --tcp=80:8888

Run the above command and let me know the result.

answered Dec 20, 2018 by Eric

Related Questions In Kubernetes

0 votes
1 answer

Error saying "The specified bucket does not exist" in kubernetes

Bucket is created in another region. Looks like ...READ MORE

answered Aug 31, 2018 in Kubernetes by Kalgi
• 52,370 points
0 votes
1 answer
0 votes
2 answers
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 52,370 points
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
0 votes
2 answers

Error while installing curl on ubuntu

This might help https://www.edureka.co/community/18638/resource-tempo ...READ MORE

answered Nov 23, 2018 in Kubernetes by Harsha