Thomas Decaux
Thomas Decaux

Reputation: 22691

Attach kubernetes object to Helm release

Using elastic official Helm chart, to deploy an elasticsearch cluster.

I had to create some k8s objects such as a NetworkPolicy in addition of the Helm values.yaml file.

I am wondering if it's possible to "attach" this object to the Helm release, so I can delete it when doing helm delete?

Upvotes: 1

Views: 371

Answers (1)

Kamol Hasan
Kamol Hasan

Reputation: 13536

No, you can't.

Helm uses $ helm get manifest <release-name> -n <namespace> to list the items to delete. So, unless your objects are part of that list, you won't be able to delete them with $ helm delete.

Upvotes: 1

Related Questions