-
Notifications
You must be signed in to change notification settings - Fork 20
[operations] Describe upgrade to v1.0 #409
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
Open
nbykov0
wants to merge
2
commits into
main
Choose a base branch
from
upgrade-1.0
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| --- | ||
| title: "Upgrades" | ||
| linkTitle: "Upgrades" | ||
| description: "Upgrade guides" | ||
| weight: 1 | ||
| --- | ||
|
|
||
| ## Upgrading to v1.0 | ||
|
|
||
| Version 1.0 brings major change to Cozystack control-plane: it is now completely modular and is composed of independent packages. | ||
| To manage packages a cozystack-operator was introduced, which replaces previous installer. | ||
| Assets server is now replaced with a single oci image, and it could be replaced with a git repository if needed. | ||
|
|
||
| However, underlying entities are still helm releases made of helm charts, so during an upgrade no workloads would be recreated or affected in any way. | ||
|
|
||
| ### 1. Prerequisites | ||
| Along with version 1.0 new management tools were introduced: `cozyhr` and `cozypkg`. You will need their latest versions to proceed with the upgrade. | ||
| - Take `cozypkg` from the Cozystack Releases page: https://github.com/cozystack/cozystack/releases | ||
| - Take `cozyhr` from its repository: https://github.com/cozystack/cozyhr/releases | ||
| You will also need regular tools such as flux, jq, kubectl, and such. | ||
|
|
||
| ### 2. Upgrade | ||
| - Upgrade to the most recent v0.4x version, such as v0.41.5 | ||
| - Apply `cozystack-crds.yaml` from the Cozystack Releases page, it contains definitions for new custom resources, such as Package and PackageSource. | ||
| - Apply `cozystack-operator.yaml` from the Cozystack Releases page, it will bring cozystack operator to the cluster. | ||
| - Generate and apply the main package for your installation with the `/hack/migrate-to-version-1.0.sh` script from the Cozystack repository. | ||
| It will gather values from existing configmaps in the `cozy-system` namespace, and assemble a `Package` resource with all the values. | ||
|
|
||
| As soon as the Package is applied, the operator will start migrations and upgrades automatically. | ||
| Migrations will clean up legacy components (old installer, assets-server, and obsolete HelmReleases). | ||
| You can track the progress by checking `HelmRelease` statuses with `kubectl get hr -A`. | ||
|
|
||
| And that's it! | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Format URLs as proper markdown links.
The bare URLs should be formatted as proper markdown links for better readability and to comply with markdown standards.
📝 Proposed fix
📝 Committable suggestion
🧰 Tools
🪛 markdownlint-cli2 (0.20.0)
[warning] 18-18: Bare URL used
(MD034, no-bare-urls)
[warning] 19-19: Bare URL used
(MD034, no-bare-urls)
🤖 Prompt for AI Agents