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

Provide a template helm chart for installing the application supported by documentation on how to adapt it for projects #79

Open
devraj opened this issue May 30, 2023 · 2 comments
Assignees

Comments

@devraj
Copy link
Member

devraj commented May 30, 2023

Is your feature request related to a problem? Please describe.
Our general approach is to provide a terraform template that provisions a Kubernetes cluster on various cloud infrastructure providers. The aim here is to avoid vendor lockin while being able to leverage the same technology stack to build applications.

My aim is to get terraform to do as much of the deployment as possible, including being able to push versions of the application to the cluster.

helm is respected package manager for Kubernetes and is used to deploy various other items in the cluster. The proposal here is to provide a helm chart that the application can ship to install versions of the app.

Describe the solution you'd like
Develop a helm chart that is able to deploy versions of the labs reference app. The chart will be published via Github pages. The aim of this chart is to act as a reference so as Anomaly projects spin off a new application via this template, we are able to provide the developers:

  • A template that does bulk of the work and requires minimum change
  • Documentation on how to expose the helm charts
  • Instructions on what to change for the chart to work for the new project

For private applications we deem there to be no security risk for the chart to be accessible publicly. The repository or images will be private and will require a key to access the images.

Our key aim here to achieve consistency across projects and provide better leverage of the technical knowledge being gathered.

Describe alternatives you've considered
NA

Additional context
We should revise how we are using helm and terraform, we should try and streamline this end of the process.

@devraj devraj self-assigned this May 30, 2023
@devraj
Copy link
Member Author

devraj commented Jul 4, 2023

See anomaly/lab-python-mock-server@a76f9d3 for some initial work on this. Still pending:

  • How we provide the command for workers and the gunicorn based application

@devraj
Copy link
Member Author

devraj commented Aug 25, 2023

In particular we should also document the following:

  • How to authenticate the helm terraform provider to download private charts
  • Authenticating to download private container images when using helm
  • Changes required to the chart template to use kubernetes_config_map to make environment vars available
  • Changes required to the chart to use the kubernetes secrets to download the private containers imagePullSecrets directive

AWS specific:

  • Labels to share the same load balancer across multiple set of pods

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

1 participant