Skip to content

[FAQ] error validating "deployment.yaml": error validating data #53

@dmitrykosintsev

Description

@dmitrykosintsev

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions