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

Update deploy.yaml #393

Merged
merged 3 commits into from
Jan 28, 2024
Merged

Update deploy.yaml #393

merged 3 commits into from
Jan 28, 2024

Conversation

SGC41
Copy link
Contributor

@SGC41 SGC41 commented Jun 22, 2023

change it to persistent storage, updated to latest image, thats about it.

This is done for a better first time user experience, so they won't loose their configurations after a provider reboot.

Have tested that it works and is actually persistent across provider reboots, have not run extensive testing tho.
seems fine and i doubled storage space just to be on the safe side, 512MB seemed a bit low, incase somebody was to add a lot of stuff to it...

the original storage was reduced from 512MB to 128MB, since it is mandatory and thus cannot be completely removed.

change it to persistent storage, updated to latest image, thats about it.

This is done for a better first time user experience, so they won't loose their configurations after a provider reboot.
@arno01
Copy link
Contributor

arno01 commented Jul 5, 2023

please don't use latest image tag and remove the single quotes around it.

akash aggressively caches the images, so ideally use the version tag there.

@SGC41
Copy link
Contributor Author

SGC41 commented Aug 14, 2023

please don't use latest image tag and remove the single quotes around it.

akash aggressively caches the images, so ideally use the version tag there.

so lets use uptime kuma as an example here...

you are saying its better to run a version that is 1 year old, rather than a new version that was updated a few weeks ago...

why is that better.... why does it matter that it akash providers cache the latest, can't be worse than running an old version, without fixes for modern security considerations.

if its such an issue, shouldn't there be a time limit on the caching... rather than just making all templates flawed.

@andy108369
Copy link
Collaborator

andy108369 commented Sep 1, 2023

@SGC41

you are saying its better to run a version that is 1 year old, rather than a new version that was updated a few weeks ago...

The issue lies in how Akash handles Docker images tagged as :latest. When you update the :latest image on a registry like GHCR or Docker Hub, Akash doesn't automatically pull the new version. To ensure Akash uses the most recent image, you must explicitly specify the image's SHA-256 hash, like this:

image: quay.io/vmware-tanzu/velero:latest@sha256:a75f9e8c3ced3943515f249597be389f8233e1258d289b11184796edceaa7dab

Without this explicit identifier, Akash might use an outdated :latest image from its cache, giving you a false sense of security about running the most current version.

Furthermore, Akash doesn't automatically update Docker images. So if you've been running an image tagged as :latest for a year, it's likely outdated by now.

For what it's worth, there's an upcoming fix for this non-standard behavior; the behavior of the :latest tag will be corrected once this pull request is merged (see also the related issue).

Until that happens, it's advisable to use images with known, specific tags. Using the :latest tag is generally discouraged in production environments for a good reason: if something goes wrong, it becomes difficult for operators and developers to determine which version was actually running under the :latest tag, complicating any retrospective analysis.

i surrender lol
@SGC41
Copy link
Contributor Author

SGC41 commented Sep 16, 2023

okay you win... i fixed it..
let me know if i missed doing something .... merge merge merge :D

uptime-kuma/deploy.yaml Outdated Show resolved Hide resolved
uptime-kuma/deploy.yaml Show resolved Hide resolved
Co-authored-by: Luis Lopes <josluis.lopes@gmail.com>
@Dimokus88
Copy link
Contributor

This template is working and ready to be merged @arno01

@andy108369 andy108369 merged commit 85b70c2 into akash-network:master Jan 28, 2024
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

Successfully merging this pull request may close these issues.

5 participants