# Installing ES with Custom image from private repository fails

**URL:** <https://discuss.elastic.co/t/installing-es-with-custom-image-from-private-repository-fails/205331>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [October 25, 2019, 10:10pm UTC](https://discuss.elastic.co/t/installing-es-with-custom-image-from-private-repository-fails/205331 "2019-10-25T22:10:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aravind](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aravind/32/45644_2.png) [@Aravind](https://discuss.elastic.co/u/Aravind)\
**Post date:** [October 25, 2019, 10:10pm UTC](https://discuss.elastic.co/t/installing-es-with-custom-image-from-private-repository-fails/205331/1 "2019-10-25T22:10:56Z")

</div>

Here is my file -

```auto
apiVersion: elasticsearch.k8s.elastic.co/v1alpha1
kind: Elasticsearch
metadata:
  name: jaeger-elasticsearch
  namespace: test
spec:
  image: phx.ocir.io/<>/elasticsearch/elasticsearch:7.3.2
  version: 7.3.2
  nodes:
    - nodeCount: 1
      config:
        node.master: true
        node.data: true
        node.ingest: true

```

I've verified that the image exists and does not require secrets for pull.

After installation I see this -

```auto
NAME HEALTH NODES VERSION PHASE AGE
jaeger-elasticsearch 7.3.2 Invalid 6m

```

Can someone pls help ? How do I debug/get logs as to what's going on ?

---

<div class="post-metadata">

**Author:** ![Aravind](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aravind/32/45644_2.png) [@Aravind](https://discuss.elastic.co/u/Aravind)\
**Post date:** [October 25, 2019, 10:11pm UTC](https://discuss.elastic.co/t/installing-es-with-custom-image-from-private-repository-fails/205331/2 "2019-10-25T22:11:29Z")

</div>

The location of the image `<>` was masked deliberately.

---

<div class="post-metadata">

**Author:** ![Aravind](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aravind/32/45644_2.png) [@Aravind](https://discuss.elastic.co/u/Aravind)\
**Post date:** [October 25, 2019, 10:44pm UTC](https://discuss.elastic.co/t/installing-es-with-custom-image-from-private-repository-fails/205331/3 "2019-10-25T22:44:46Z")

</div>

Once I switched to `NodeSets` definition, it went through fine.

```auto
apiVersion: elasticsearch.k8s.elastic.co/v1alpha1
kind: Elasticsearch
metadata:
  name: jaeger-elasticsearch
  namespace: observability
spec:
  image: phx.ocir.io/test/elasticsearch/elasticsearch:7.3.2
  version: 7.3.2
  nodeSets:
    - name: default
      config:
        node.master: true
        node.data: true
        node.ingest: true
      podTemplate:
        metadata:
          labels:
            jaeger: jaeger-elasticsearch
        spec:
          containers:
            - name: elasticsearch
              resources:
                requests:
                  memory: 4Gi
                  cpu: 1
                limits:
                  memory: 4Gi
                  cpu: 2
      count: 3

```

---

<div class="post-metadata">

**Author:** ![sebgl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebgl/32/48702_2.png) [@sebgl](https://discuss.elastic.co/u/sebgl)\
**Post date:** [October 28, 2019, 5:44am UTC](https://discuss.elastic.co/t/installing-es-with-custom-image-from-private-repository-fails/205331/4 "2019-10-28T05:44:46Z")

</div>

If anyone else ends up here: the specification was expressed using ECK 0.9 syntax in the first post ( `nodes` ), instead of using the 1.0.0 syntax ( `nodeSets` ). Using a private registry should work as expected.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 4, 2022, 7:31am UTC](https://discuss.elastic.co/t/installing-es-with-custom-image-from-private-repository-fails/205331/5 "2022-11-04T07:31:01Z")

</div>


