# Applying platinum license in Kubernetes

**URL:** https://discuss.elastic.co/t/applying-platinum-license-in-kubernetes/257554
**Category:** Elasticsearch
**Tags:** license
**Created:** [December 3, 2020, 5:12pm UTC](https://discuss.elastic.co/t/applying-platinum-license-in-kubernetes/257554 "2020-12-03T17:12:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ngilmore](https://avatars.discourse-cdn.com/v4/letter/n/2bfe46/32.png) [@ngilmore](https://discuss.elastic.co/u/ngilmore)
#### Post date: [December 3, 2020, 5:12pm UTC](https://discuss.elastic.co/t/applying-platinum-license-in-kubernetes/257554/1 "2020-12-03T17:12:53Z")

</div>

Hello,

I am trying to apply the platinum license in code versus adding it through Kibana.

How is this done?

I know the standard of setting up the trial license first is - `xpack.license.self_generated.type: trial`

I want to set it up as a secret and reference it in the config map.

Is this possible? If so, how?

Thanks

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [December 4, 2020, 4:51am UTC](https://discuss.elastic.co/t/applying-platinum-license-in-kubernetes/257554/2 "2020-12-04T04:51:19Z")

</div>

There is no way to apply a license in the configuration. You have to use the [Elasticsearch API](https://www.elastic.co/guide/en/elasticsearch/reference/7.10/update-license.html) or Kibana UI.

---

<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: [January 1, 2021, 4:51am UTC](https://discuss.elastic.co/t/applying-platinum-license-in-kubernetes/257554/3 "2021-01-01T04:51:36Z")

</div>

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