# K8s operator with custom ES docker image

**URL:** <https://discuss.elastic.co/t/k8s-operator-with-custom-es-docker-image/186229>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [June 18, 2019, 11:00am UTC](https://discuss.elastic.co/t/k8s-operator-with-custom-es-docker-image/186229 "2019-06-18T11:00:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Thibault\_Richard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thibault_richard/32/50513_2.png) [@Thibault\_Richard](https://discuss.elastic.co/u/Thibault_Richard)\
**Post date:** [June 18, 2019, 12:02pm UTC](https://discuss.elastic.co/t/k8s-operator-with-custom-es-docker-image/186229/2 "2019-06-18T12:02:44Z")

</div>

Yes, custom Elasticsearch docker image are supported using the _spec.image_ field. You still need to set the `spec.version` field.

```
apiVersion: elasticsearch.k8s.elastic.co/v1alpha1
kind: Elasticsearch
metadata:
  name: <cluster-name>
spec:
  image: <custom-image>
  version: 7.1.1

```

Note: private repository are not yet supported.

Related discussion: [Using a custom docker image for Elastic Cloud on Kubernetes](https://discuss.elastic.co/t/using-a-custom-docker-image-for-elastic-cloud-on-kubernetes/184241/6)

---

_[View the full topic](https://discuss.elastic.co/t/k8s-operator-with-custom-es-docker-image/186229)._
