clearml-server-helm icon indicating copy to clipboard operation
clearml-server-helm copied to clipboard

Multiple problems with the Helm chart

Open iirekm opened this issue 4 years ago • 2 comments

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...

iirekm avatar Nov 11 '20 19:11 iirekm

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?

bmartinn avatar Nov 11 '20 19:11 bmartinn

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

iirekm avatar Nov 11 '20 20:11 iirekm