ImagePullBackOff error while deploying Elastic via ECK

Hi @alytkowski,

Edit: imagePullPolicy: IfNotPresent will work too, but Never is the nuclear option!

Indeed, it looks like there is an open issue with minikube and one of the recommended workarounds is to manually pull the image, as you did.

First, I would recommend that you confirm the image is loaded into the minikube cluster: minikube ssh docker images | grep elasticsearch

Then, you can use a slightly altered version of the manifest that we have in the docs to force k8s to use the local image instead of trying to pull it, by setting imagePullPolicy: Never

cat <<EOF | kubectl apply -f -
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
  name: quickstart
spec:
  version: 8.4.3
  nodeSets:
  - name: default
    count: 1
    config:
      node.store.allow_mmap: false
    podTemplate:
      spec:
        containers:
        - name: elasticsearch
          imagePullPolicy: Never
EOF

Hope this works for you :beers:

1 Like