-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
Description
Course
machine-learning-zoomcamp
Question
Error validating "deployment.yaml": error validating data
Answer
When running
kubectl apply -f deployment.yaml,
you get:
error: error validating "deployment.yaml": error validating data: failed to download openapi: Get "http://localhost:8080/openapi/v2?timeout=32s": dial tcp [::1]:8080: connect: connection refused; if you choose to ignore these errors, turn validation off with --validate=false
This error happens if you did not create a local k8s cluster. Solution, as explained in the workshop:
kind create cluster --name mlzoomcamp
Verify that it is running:
kubectl cluster-info
kubectl get nodes
Checklist
- I have searched existing FAQs and this question is not already answered
- The answer provides accurate, helpful information
- I have included any relevant code examples or links