-
Notifications
You must be signed in to change notification settings - Fork 31
feat(ec): new data directory location and configuration #2723
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
Changes from all commits
2c7ea39
e64ec2c
ff80bf4
212a304
ba3820f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -208,4 +208,25 @@ The Embedded Cluster host preflight checks verify the default ports or the user- | |
|
|
||
| ### Limitation | ||
|
|
||
| It is not possible to change the port for the Admin Console during a restore with Embedded Cluster. For more information, see [Disaster Recovery for Embedded Cluster (Alpha)](/vendor/embedded-disaster-recovery). | ||
| It is not possible to change the port for the Admin Console during a restore with Embedded Cluster. For more information, see [Disaster Recovery for Embedded Cluster (Alpha)](/vendor/embedded-disaster-recovery). | ||
|
|
||
| ## Change the Default Data Directory {#data-dir} | ||
|
|
||
| The default location of the data directory for Embedded Cluster is `/var/lib/embedded-cluster`. | ||
|
|
||
| This directory can be modified by the user by passing the `--data-dir` flag to the `install` command. | ||
|
|
||
| For example: | ||
|
|
||
| ```bash | ||
| sudo ./APP_SLUG install --data-dir /data/embedded-cluster --license license.yaml --airgap-bundle APP_SLUG.airgap | ||
| ``` | ||
| Where `APP_SLUG` is the unique application slug. | ||
|
|
||
| ### Limtiations | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ^ Added limitations related to changing the default dir, including that you have to use the same dir during a restore |
||
|
|
||
| * The data directory for Embedded Cluster cannot be changed after the cluster is installed. | ||
|
|
||
| * If you use the `--data-dir` flag to change the data directory during installation, then you must use the same location when restoring in a disaster recovery scenario. For more information about disaster recovery with Embedded Cluster, see [Disaster Recovery for Embedded Cluster](/vendor/embedded-disaster-recovery). | ||
|
|
||
| * Replicated does not support using symlinked directories for the Embedded Cluster data directory. Use the `--data-dir` flag instead of symlinking `/var/lib/embedded-cluster`. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,17 @@ | ||
| * Linux operating system | ||
|
|
||
| * x86-64 architecture | ||
|
|
||
| * systemd | ||
|
|
||
| * At least 2GB of memory and 2 CPU cores | ||
| * Disk space requirements: | ||
| * The filesystem at `/var/lib/embedded-cluster` has 40Gi or more of total space | ||
| * The filesystem at `/var/lib/k0s` has 40Gi or more of total space and must be no more than 80% full | ||
| * The filesystem at `/var/openebs` has 5Gi or more of total space | ||
| * The filesystem at `/tmp` has 5Gi or more of total space | ||
|
|
||
| * The filesystem at `/var/lib/embedded-cluster` has 40Gi or more of total space and must be less than 80% full | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ^ Updated the disk space requirements to clarify that you just need the embedded-cluster dir with 40gi+ of space and less than 80% full. |
||
|
|
||
| :::note | ||
| The directory used for data storage can be changed by passing the `--data-dir` flag with the Embedded Cluster install command. For more information, see [Change the Default Data Directory](/enterprise/installing-embedded#data-dir) in _Installing with Embedded Cluster_. | ||
| ::: | ||
|
|
||
| * (Online installations only) Access to replicated.app and proxy.replicated.com or your custom domain for each | ||
|
|
||
| * Embedded Cluster is based on k0s, so all k0s system requirements and external runtime dependencies apply. See [System requirements](https://docs.k0sproject.io/stable/system-requirements/) and [External runtime dependencies](https://docs.k0sproject.io/stable/external-runtime-deps/) in the k0s documentation. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With the change that all data is stored in the /var/lib/embedded-cluster dir, it seemed like this whole storage requirements partial could be removed. I'm thinking that if there's anything from this that we want to tell people (like some examples of what's stored in /var/lib/embedded-cluster), I could add that to the disk storage requirement |
This file was deleted.
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.
^ Added "Change the Default Data Directory" section in the Embedded Cluster online install topic next just below the existing section of the changing the default kotsadm/LAM ports