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
or
TLS handshake timeout

logs

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.
ubuntu@ip-172-31-84-18:~$
Dec 20, 2018 in Kubernetes by Ali
• 10,290 points
146 views
Can i please get some more details like logs

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 35,640 points
124 views
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
• 35,640 points
30 views
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

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

answered Jan 17 in Others by anonymous
434 views
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
31 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.