Skip to content

Instantly share code, notes, and snippets.

@sduff
Last active August 13, 2024 01:37
Show Gist options
  • Select an option

  • Save sduff/60f18cb7ddbe81007d69685583a2f4b9 to your computer and use it in GitHub Desktop.

Select an option

Save sduff/60f18cb7ddbe81007d69685583a2f4b9 to your computer and use it in GitHub Desktop.

Minikube in Podman

Minikube in Podman can report an error like did not resolve to an alias and no unqualified-search registries are defined

$ kubectl describe pod  flink-kubernetes-operator-b9fcc8458-nvmlv
  Warning  InspectFailed  75s (x7 over 2m24s)  kubelet            Failed to inspect image "confluentinc/cp-flink-kubernetes-operator:1.8.0-c
p1": rpc error: code = Unknown desc = short-name "confluentinc/cp-flink-kubernetes-operator:1.8.0-cp1" did not resolve to an alias and no un
qualified-search registries are defined in "/etc/containers/registries.conf"

The registries.conf file in minikube needs to be updated.

  1. Log into minikube with minikube ssh
  2. Run sudo vi /etc/containers/registries.conf
  3. Uncomment the line unqualified-search-registries = ["example.com"] and change the value to ["docker.io"]
  4. Exit the ssh session (Ctrl-D)
  5. Run minikube stop && minikube start

The image should be working on restart

$ kubectl get pods
NAME                                        READY   STATUS    RESTARTS   AGE
flink-kubernetes-operator-b9fcc8458-nvmlv   2/2     Running   0          11h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment