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

Deploy scancode.io through helm chart #461

Open
shusriva opened this issue Jul 5, 2022 · 7 comments
Open

Deploy scancode.io through helm chart #461

shusriva opened this issue Jul 5, 2022 · 7 comments

Comments

@shusriva
Copy link

shusriva commented Jul 5, 2022

Hi Team,
Can you please provide a helmchart to deploy scancode.io in Kubernetes cluster.
Currently creating and managing helm chart for scancode.io is a pain

@AyanSinhaMahapatra
Copy link
Member

See https://github.com/xerrni/scancode-kube (and let us know how this goes). We have this docs in a PR #442 which we have to merge in soon.

@shusriva
Copy link
Author

shusriva commented Jul 6, 2022

@AyanSinhaMahapatra I am able to deploy the helm chart after updating some of the cred of postgres.
Somehow the UI is not looking as expected.
image

Are you aware about this

@tdruez
Copy link
Contributor

tdruez commented Jul 7, 2022

The documentation is now available at https://scancodeio.readthedocs.io/en/latest/installation.html#helm-chart-beta

Somehow the UI is not looking as expected.

@shusriva This looks like an issue with the static files (CSS, JS, ...) that are not properly setup.

@xerrni any ideas/suggestions about this issue?

@shusriva
Copy link
Author

shusriva commented Jul 7, 2022

@xerrni @AyanSinhaMahapatra
After debugging I found that somehow scancode-staticsite pvc is not getting bound to any pod.
image

@tdruez
Copy link
Contributor

tdruez commented Jul 14, 2022

@shusriva were you able to fix the staticsite issue? I'd like to improve the current documentation if you have some feedback on this.

@shusriva
Copy link
Author

shusriva commented Jul 14, 2022

@tdruez Yes, values.yaml file was missing under scancode folder. I just placed it there.
Somehow I am able to make it up and running but the helm chart(scancode) is very tightly coupled with other helm charts (postgres,nginx and redis). some images and hostname are hardcoded in the deployment file.

As per my requirement, I have to utilize existing Postgres and Redis from the cluster but I wasn't able to do this with this helm chart.

It will be good if someone can define, how to connect scancodeio with existing postgres and redis

@tdruez
Copy link
Contributor

tdruez commented Oct 10, 2022

Feedback on the current implementation from @shusriva at #541 (comment)

  1. Chart need some more improvement, I was unable to configure my existing postgres and redis because of dynamic cred. env variables needs to be configured in the chart to use existing psotgres and redis
  1. storage class is not defined explicitly in values.yaml file, hence we are forced to use local path for scancode. please provide options in values.yaml to explictly mention the storage class
  1. scancode pods are not coming up if any other storage class is used (e.g ebs-ssd from aws)

@shusriva feel free to submit a PR including all those requirements and any extra documentation that would help with the Helm chart deployments.

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

3 participants