appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

fix: Add mongo/redis to helm chart dependencies

Open pratapaprasanna opened this issue 2 years ago • 15 comments

Description

Add redis and mongo as individual pods to our helm charts.

Fixes 15929

PFA

Redis: Screenshot 2022-08-17 at 1 42 43 PM

Screenshot 2022-08-17 at 1 44 54 PM

Screenshot 2022-08-17 at 3 28 43 PM Screenshot 2022-08-17 at 3 28 49 PM

Mongo deployment pics: Screenshot 2022-08-30 at 5 38 23 PM Screenshot 2022-08-30 at 5 39 17 PM Screenshot 2022-08-30 at 5 39 31 PM

Mongo: Demo of the deployment of how it looks.

https://user-images.githubusercontent.com/15846947/190350964-2ec81f73-9c46-4cb6-b476-a0b1908c8f93.mov

pratapaprasanna avatar Aug 17 '22 08:08 pratapaprasanna

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
appsmith ✅ Ready (Inspect) Visit Preview Oct 14, 2022 at 10:00AM (UTC)

vercel[bot] avatar Aug 17 '22 08:08 vercel[bot]

Unable to find test scripts. Please add necessary tests to the PR.

github-actions[bot] avatar Aug 17 '22 08:08 github-actions[bot]

Unable to find test scripts. Please add necessary tests to the PR.

github-actions[bot] avatar Aug 17 '22 10:08 github-actions[bot]

Deployment failed with the following error:

Resource is limited - try again in 1 minute (more than 100, code: "api-deployments-free-per-day").

vercel[bot] avatar Aug 23 '22 07:08 vercel[bot]

Unable to find test scripts. Please add necessary tests to the PR.

github-actions[bot] avatar Aug 29 '22 06:08 github-actions[bot]

Unable to find test scripts. Please add necessary tests to the PR.

github-actions[bot] avatar Aug 30 '22 12:08 github-actions[bot]

Unable to find test scripts. Please add necessary tests to the PR.

github-actions[bot] avatar Sep 01 '22 05:09 github-actions[bot]

Unable to find test scripts. Please add necessary tests to the PR.

github-actions[bot] avatar Sep 01 '22 05:09 github-actions[bot]

@pratapaprasanna, thanks for opening this.

This new chart will need manual upgrading, right? For example, if someone is running the current Helm Chart (v1.5.3), their MongoDB data would be in the Appsmith pod's PV. But with this chart, that data should be in the mongodb pods' PV. Which means moving from that Helm Chart to this one, will need some migration effort, right? Can we document the steps needed for someone already using current Helm Chart to migrate to this one please?

Also, because of this reason, let's make this Helm Chart version v2.0.0 in Chart.yaml. What say?

cc @mohanarpit

Will this mean that we will deprecate v1.x for our Helm charts and urge users to follow the migration steps v2.x? If yes, will any critical fixes be made to both v1.x & v2.x Helm charts? Also, when users run the command helm upgrade today, will Helm pick up the v1.x chart or v2.x chart?

mohanarpit avatar Sep 02 '22 07:09 mohanarpit

@mohanarpit, I'd rather we take a call on deprecating v1.x, after we know what it takes to upgrade to this Helm Charts. If it's a simple one or two steps, then lets deprecate. We are still hosting charts all the way from 1.3 I think, which is just becoming a baggage.

Yeah, critical fixes will need to be made in both, but, we haven't seen any such critical issues in our Helm Charts so far. 🤞

I don't think helm upgrade upgrades the version of the Helm charts. That command is to apply any changes in our values.yml configuration to our existing chart. @pratapaprasanna, please correct if this is not right.

sharat87 avatar Sep 02 '22 10:09 sharat87

Unable to find test scripts. Please add necessary tests to the PR.

github-actions[bot] avatar Sep 03 '22 17:09 github-actions[bot]

@pratapaprasanna, I see that you've requested a review, but I don't see a comment with your thoughts on backwards compatibility and a migration path. Can you take a look at https://github.com/appsmithorg/appsmith/pull/16096#pullrequestreview-1094413731 and share your thoughts please?

sharat87 avatar Sep 06 '22 09:09 sharat87

This PR has not seen activitiy for a while. It will be closed in 7 days unless further activity is detected.

github-actions[bot] avatar Sep 13 '22 16:09 github-actions[bot]

Unable to find test scripts. Please add necessary tests to the PR.

github-actions[bot] avatar Sep 15 '22 08:09 github-actions[bot]

Deployment failed with the following error:

Resource is limited - try again in 13 minutes (more than 100, code: "api-deployments-free-per-day").

vercel[bot] avatar Sep 15 '22 11:09 vercel[bot]

Deployment failed with the following error:

Resource is limited - try again in 19 minutes (more than 100, code: "api-deployments-free-per-day").

vercel[bot] avatar Oct 14 '22 06:10 vercel[bot]

Deployment failed with the following error:

Resource is limited - try again in 16 minutes (more than 100, code: "api-deployments-free-per-day").

vercel[bot] avatar Oct 14 '22 06:10 vercel[bot]

Unable to find test scripts. Please add necessary tests to the PR.

github-actions[bot] avatar Oct 14 '22 11:10 github-actions[bot]

Hi,

im currently facing an issue with in an kubernetes environment which doesn't have access to the internet. The appsmith container is always in the INIT:0/2 state because the helm chart is using an alpine image and is installing the redis-cli through the command durring the initialization:

sh -c apk add redis; until redis-cli -h appsmith-redis-master.manufacturing-appsmith-dev.svc.cluster.local ping; do echo waiting for redis; sleep 2; done

that is why the init process is logging the following messages all the time:

sh: redis-cli: not found waiting for redis

looks like the current helm chart is not usable in such an offline environment and should be improved.

ep-Alex avatar Nov 30 '22 13:11 ep-Alex