terraform-provider-kubernetes-alpha icon indicating copy to clipboard operation
terraform-provider-kubernetes-alpha copied to clipboard

Create top 5 helm charts as terraform modules

Open dak1n1 opened this issue 4 years ago • 17 comments

Description

Now that we have the ability to create Kubernetes CRDs inside of Terraform configs, it would be useful to convert some Helm charts into Terraform modules.

This issue tracks the following:

  • Convert top 5 Helm charts into Terraform modules.
  • Document the process so that contributors can add any other modules.

References

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

dak1n1 avatar Jun 02 '20 16:06 dak1n1

Please vote on the helm charts below by leaving a :+1: reaction on the one(s) you want to see created in Terraform. You can also leave a comment specifying any other chart for the community to vote on. Thanks!

dak1n1 avatar Jun 02 '20 16:06 dak1n1

Prometheus

dak1n1 avatar Jun 02 '20 16:06 dak1n1

Istio

dak1n1 avatar Jun 02 '20 16:06 dak1n1

Thanos

dak1n1 avatar Jun 02 '20 16:06 dak1n1

Nginx-ingress

dak1n1 avatar Jun 02 '20 16:06 dak1n1

Cert-manager

dak1n1 avatar Jun 02 '20 16:06 dak1n1

External-DNS

dak1n1 avatar Jun 02 '20 16:06 dak1n1

Traefik

dak1n1 avatar Jun 02 '20 16:06 dak1n1

Linkerd

ArthurSens avatar Jun 02 '20 17:06 ArthurSens

Harbor

ArthurSens avatar Jun 02 '20 17:06 ArthurSens

@daverod24 I opened https://github.com/hashicorp/terraform-provider-kubernetes-alpha/issues/59 so we can track your issue. Going to remove the comment from here to avoid polluting this unrelated issue.

alexsomesan avatar Jun 11 '20 17:06 alexsomesan

Consul, Vault (I'd really like to deploy HashiCorp products with other HashiCorp products 😅)

krzysztof-miemiec avatar Jun 11 '20 17:06 krzysztof-miemiec

opa/gatekeeper

curx avatar Jul 31 '20 12:07 curx

Here are a few module examples to try with the v0.3.0 release of the kubernetes-alpha provider. Please note that these are all initial examples and not vetted for production use.

  • Flux: https://registry.terraform.io/modules/redeux/flux-install/kubernetes/latest
  • Prometheus-operator: https://registry.terraform.io/modules/aareet/prometheus-operator/kubernetes/latest
  • Terraform Cloud Operator: https://registry.terraform.io/modules/aareet/terraform-cloud-operator/kubernetes/latest
  • ArgoCD: https://registry.terraform.io/modules/aareet/argocd/kubernetes/latest
  • Cert Manager: https://registry.terraform.io/modules/aareet/cert-manager/kubernetes/latest

Please give these a try and share your feedback on any provider issues you encounter by filing bugs with us, thanks!

We will soon follow-up with some instructional material on how to convert your helm charts into a terraform module for use with the kubernetes-alpha provider.

aareet avatar Mar 11 '21 00:03 aareet

Q: Should we use the new manifest resource for everything or just for custom resources and continue to use the old resources like kubernetes_stateful_set, kubernetes_service etc.?

Skaronator avatar Apr 27 '21 12:04 Skaronator

Hi @Skaronator, we recommend continuing to use the official kubernetes provider for production resources. We are still working to stabilize and mature the kubernetes-alpha provider and hope to have the manifest resource be production capable soon

aareet avatar Apr 30 '21 16:04 aareet

What exactly are you trying to achieve here? Why not use the helm provider to install helm resources? The process involved in maintaining such modules will likely be stressful. When any update is made to the helm repo/chart, it'll have to be replicated to the terraform module. Eventually, you find out some terraform modules are not to date with what is on the chart because of the stress involved in updating this modules everytime a new change is made in the helm chart.

Kubernetes Provider has it's own use case and in my opinion, rewriting helm charts is not one of them.

MeNsaaH avatar Jun 02 '21 16:06 MeNsaaH