Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple problems with the Helm chart #5

Open
iirekm opened this issue Nov 11, 2020 · 2 comments
Open

Multiple problems with the Helm chart #5

iirekm opened this issue Nov 11, 2020 · 2 comments

Comments

@iirekm
Copy link

iirekm commented Nov 11, 2020

Unfortunately, the Trains chart is far from being any useful. Only a few problems I had with it:

  •  `- name: agent-data
      hostPath:
        path: /opt/trains/agent` - k8s has PVCs for that
    
  • creating storage classes manually - nobody does that, they are provided by k8s (eg to use AWS EBS autoprovisioning)

  • impossible to reduce PVC size or Elasticsearch CPU requests for development purposes

  • for HTTP stuff, ingresses are typically used, not zillions of services at separate ports

  • elasticsearch, mongo, etc - there are existing Helm charts for them which can be included, no need to reinvent the wheel

  • for many admins, Helm is now passe, long live Kustomize

  • and many many more...

@bmartinn
Copy link
Member

Hi @iirekm
Yes, setting up a trains-server on k8s is complex due to the multiple databases, requirements and the external ports that needs to be configured.
I like the idea of switching to Kustomize 👍
How complicated is it to take this docker-compose.yaml and build kustomization YAMLs?

@iirekm
Copy link
Author

iirekm commented Nov 11, 2020

Hi @iirekm
Yes, setting up a trains-server on k8s is complex due to the multiple databases, requirements and the external ports that needs to be configured.
I like the idea of switching to Kustomize 👍
How complicated is it to take this docker-compose.yaml and build kustomization YAMLs?

To support Kustomize you already have almost everything:

  • run 'helm template' command to remove variable interpolations (Kustomize doesn't need them)
  • split huge yaml generated by the above commands into smaller (just for ease)
  • create kustomize.yaml and include the above yamls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants