vmware-tanzu-labs / educates-training-platform

A platform for hosting interactive workshop environments in Kubernetes, or on top of a local container runtime.
https://docs.educates.dev
Apache License 2.0
72 stars 18 forks source link

Create a local cluster fails if registry container is stopped #360

Closed jorgemoralespou closed 3 months ago

jorgemoralespou commented 4 months ago

Describe the bug

When you create a local educates cluster if the registry already existed but is not running (with an ip/port binding) then cluster creation process fails at Linking local registry to cluster with:

Error: failed to create service for registry: unable to create registry headless service endpoint: EndpointSlice.discovery.k8s.io "registry-1" is invalid: [endpoints[0].addresses[0]: Invalid value: "": must be a valid IPv4 address, endpoints[0].addresses[0]: Invalid value: "": must be a valid IP address]

This is because the containerInspect of educates-registry here does not check for the container to be running and later the network.IPAddress of that container is empty (as it's stopped) and fails

Additional information

No response

jorgemoralespou commented 3 months ago

This is solved on the new installer