Closed antonlisovenko closed 3 years ago
@antonlisovenko this is likely being caused by your operator image not being present in the cluster registry (and possibly your bundle image). Try running
kind load docker-image "$OPERATOR_IMG"
kind load docker-image "$BUNDLE_IMG"
operator-sdk run bundle "$BUNDLE_IMG"
/language go /triage support
hi @estroz
Not sure if that's the issue as both images are pushed/pulled from dockerhub.
I tried your suggestion (had to remove the pod docker-io-antonlisovenko-memcached-operator-bundle-v0-0-1
and the catalogsources.operators.coreos.com
as operator-sdk run bundle
complained about them) but still have the same problems with Pending pod...
Could you recommend further actions to diagnose the problem - maybe some logs will be helpful somewhere?
Try
kubectl describe pod docker-io-antonlisovenko-memcached-operator-bundle-v0-0-1
> kubectl describe pod docker-io-antonlisovenko-memcached-operator-bundle-v0-0-1
Name: docker-io-antonlisovenko-memcached-operator-bundle-v0-0-1
Namespace: mongodb-atlas-system
Priority: 0
Node: <none>
Labels: <none>
Annotations: <none>
Status: Pending
IP:
IPs: <none>
Containers:
registry-grpc:
Image: quay.io/operator-framework/upstream-opm-builder:latest
Port: 50051/TCP
Host Port: 0/TCP
Command:
/bin/sh
-c
/bin/mkdir -p /database && \
/bin/opm registry add -d /database/index.db -b docker.io/antonlisovenko/memcached-operator-bundle:v0.0.1 --mode=semver && \
/bin/opm registry serve -d /database/index.db -p 50051
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-vbvvr (ro)
Volumes:
default-token-vbvvr:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-vbvvr
Optional: false
QoS Class: BestEffort
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events: <none>
Ok, found the issue. The Kind cluster was created with local registry: https://kind.sigs.k8s.io/docs/user/local-registry/ that somehow affected the work.. This is strange because other pods referencing images on the Internet used to work fine...
Creating kind cluster by simple kind create cluster
instead fixed the problem.
Thanks for your help @estroz
Bug Report
What did you do?
Followed the quickstart instructions:
What did you expect to see?
the bundle to get installed
What did you see instead? Under which circumstances?
I see the output error:
Pod is not ready:
And its status doesn't show much:
Environment
Operator type:
Kubernetes cluster type:
"vanilla" (Kind)
$ operator-sdk version
$ go version
(if language is Go)$ kubectl version
Possible Solution
Additional context