# Create index template with K8S CRD

**URL:** <https://discuss.elastic.co/t/create-index-template-with-k8s-crd/285143>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [September 25, 2021, 9:02pm UTC](https://discuss.elastic.co/t/create-index-template-with-k8s-crd/285143 "2021-09-25T21:02:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebuildy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ebuildy/32/6070_2.png) [@ebuildy](https://discuss.elastic.co/u/ebuildy)\
**Post date:** [September 25, 2021, 9:02pm UTC](https://discuss.elastic.co/t/create-index-template-with-k8s-crd/285143/1 "2021-09-25T21:02:51Z")

</div>

Is there a CRD to create an index template?

I know rabbitMQ operator allow to declare queue like this:

```auto
apiVersion: rabbitmq.com/v1beta1
kind: Queue
metadata:
  name: test
  namespace: rabbitmq-system
spec:
  name: test
  rabbitmqClusterReference:
    name: example-rabbit

```

will be awesome to be able to define:

- index template
- index
- ILM
- snapshot repo & policy

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [September 26, 2021, 12:32pm UTC](https://discuss.elastic.co/t/create-index-template-with-k8s-crd/285143/2 "2021-09-26T12:32:07Z")

</div>

Not that I'm tracking. We just use the API to create the templates after creating the Elasticsearch instances.

---

<div class="post-metadata">

**Author:** ![ebuildy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ebuildy/32/6070_2.png) [@ebuildy](https://discuss.elastic.co/u/ebuildy)\
**Post date:** [September 26, 2021, 2:08pm UTC](https://discuss.elastic.co/t/create-index-template-with-k8s-crd/285143/3 "2021-09-26T14:08:41Z")

</div>

thanks you,

Should I create a PR into this operator or create a new operator "Elasticsearch topology" ?

Provisionning is a really good feature, especially with gitops pattern.

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [September 26, 2021, 2:27pm UTC](https://discuss.elastic.co/t/create-index-template-with-k8s-crd/285143/4 "2021-09-26T14:27:27Z")

</div>

I can't answer that.

---

<div class="post-metadata">

**Author:** ![idanmo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/idanmo/32/50092_2.png) [@idanmo](https://discuss.elastic.co/u/idanmo)\
**Post date:** [September 26, 2021, 6:01pm UTC](https://discuss.elastic.co/t/create-index-template-with-k8s-crd/285143/5 "2021-09-26T18:01:50Z")

</div>

Hi, you can follow the relevant issue [here](https://github.com/elastic/cloud-on-k8s/issues/3598).

---

<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:** [October 24, 2021, 6:02pm UTC](https://discuss.elastic.co/t/create-index-template-with-k8s-crd/285143/6 "2021-10-24T18:02:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
