Skip to content

Commit 43f02f1

Browse files
emosbaughpaigecalvertajp-io
authored
feat(ec): new data directory location and configuration (#2723)
* feat(ec): new data directory location and configuration * docs edits * docs edits * Update docs/enterprise/installing-embedded.mdx Co-authored-by: Alex Parker <[email protected]> * undo rn change --------- Co-authored-by: Paige Calvert <[email protected]> Co-authored-by: Alex Parker <[email protected]>
1 parent fc02e3f commit 43f02f1

File tree

6 files changed

+35
-87
lines changed

6 files changed

+35
-87
lines changed

docs/enterprise/installing-embedded.mdx

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,4 +208,25 @@ The Embedded Cluster host preflight checks verify the default ports or the user-
208208

209209
### Limitation
210210

211-
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).
211+
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).
212+
213+
## Change the Default Data Directory {#data-dir}
214+
215+
The default location of the data directory for Embedded Cluster is `/var/lib/embedded-cluster`.
216+
217+
This directory can be modified by the user by passing the `--data-dir` flag to the `install` command.
218+
219+
For example:
220+
221+
```bash
222+
sudo ./APP_SLUG install --data-dir /data/embedded-cluster --license license.yaml --airgap-bundle APP_SLUG.airgap
223+
```
224+
Where `APP_SLUG` is the unique application slug.
225+
226+
### Limtiations
227+
228+
* The data directory for Embedded Cluster cannot be changed after the cluster is installed.
229+
230+
* 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).
231+
232+
* 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`.

docs/enterprise/installing-general-requirements.mdx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import DockerCompatibility from "../partials/image-registry/_docker-compatibility.mdx"
22
import KubernetesCompatibility from "../partials/install/_kubernetes-compatibility.mdx"
33
import EmbeddedClusterRequirements from "../partials/embedded-cluster/_requirements.mdx"
4-
import EmbeddedClusterStorageReqs from "../partials/embedded-cluster/_storage-reqs.mdx"
54
import EmbeddedClusterPortRequirements from "../partials/embedded-cluster/_port-reqs.mdx"
65

76
# Installation Requirements
@@ -259,10 +258,6 @@ To install with the Embedded Cluster installer, your environment must meet the f
259258

260259
<EmbeddedClusterRequirements/>
261260

262-
### Host Storage Requirements
263-
264-
<EmbeddedClusterStorageReqs/>
265-
266261
### Port Requirements
267262

268263
<EmbeddedClusterPortRequirements/>
Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
* Linux operating system
2+
23
* x86-64 architecture
4+
35
* systemd
6+
47
* At least 2GB of memory and 2 CPU cores
5-
* Disk space requirements:
6-
* The filesystem at `/var/lib/embedded-cluster` has 40Gi or more of total space
7-
* The filesystem at `/var/lib/k0s` has 40Gi or more of total space and must be no more than 80% full
8-
* The filesystem at `/var/openebs` has 5Gi or more of total space
9-
* The filesystem at `/tmp` has 5Gi or more of total space
8+
9+
* The filesystem at `/var/lib/embedded-cluster` has 40Gi or more of total space and must be less than 80% full
10+
11+
:::note
12+
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_.
13+
:::
14+
1015
* (Online installations only) Access to replicated.app and proxy.replicated.com or your custom domain for each
16+
1117
* 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.

docs/partials/embedded-cluster/_storage-reqs.mdx

Lines changed: 0 additions & 69 deletions
This file was deleted.

docs/partials/support-bundles/_generate-bundle-ec.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To generate a support bundle:
1818
((____!___/) Type 'exit' (or CTRL+d) to exit.
1919
\0\0\0\0\/ Happy hacking.
2020
~~~~~~~~~~~
21-
root@alex-ec-2:/home/alex# export KUBECONFIG="/var/lib/k0s/pki/admin.conf"
21+
root@alex-ec-2:/home/alex# export KUBECONFIG="/var/lib/embedded-cluster/k0s/pki/admin.conf"
2222
root@alex-ec-2:/home/alex# export PATH="$PATH:/var/lib/embedded-cluster/bin"
2323
root@alex-ec-2:/home/alex# source <(kubectl completion bash)
2424
root@alex-ec-2:/home/alex# source /etc/bash_completion

docs/vendor/embedded-overview.mdx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import EmbeddedCluster from "../partials/embedded-cluster/_definition.mdx"
22
import KurlComparison from "../partials/embedded-cluster/_kurl-comparison.mdx"
33
import Requirements from "../partials/embedded-cluster/_requirements.mdx"
44
import UpdateOverview from "../partials/embedded-cluster/_update-overview.mdx"
5-
import EmbeddedClusterStorageReqs from "../partials/embedded-cluster/_storage-reqs.mdx"
65
import EmbeddedClusterSupportBundle from "../partials/support-bundles/_generate-bundle-ec.mdx"
76
import EcConfig from "../partials/embedded-cluster/_ec-config.mdx"
87
import EmbeddedClusterPortRequirements from "../partials/embedded-cluster/_port-reqs.mdx"
@@ -37,10 +36,6 @@ As shown in the diagram above, the Embedded Cluster Config is included in the ap
3736

3837
<Requirements/>
3938

40-
#### Host Storage Requirements
41-
42-
<EmbeddedClusterStorageReqs/>
43-
4439
#### Port Requirements
4540

4641
<EmbeddedClusterPortRequirements/>
@@ -215,7 +210,7 @@ To access the cluster and use other included binaries:
215210
((____!___/) Type 'exit' (or CTRL+d) to exit.
216211
\0\0\0\0\/ Happy hacking.
217212
~~~~~~~~~~~
218-
root@alex-ec-2:/home/alex# export KUBECONFIG="/var/lib/k0s/pki/admin.conf"
213+
root@alex-ec-2:/home/alex# export KUBECONFIG="/var/lib/embedded-cluster/k0s/pki/admin.conf"
219214
root@alex-ec-2:/home/alex# export PATH="$PATH:/var/lib/embedded-cluster/bin"
220215
root@alex-ec-2:/home/alex# source <(kubectl completion bash)
221216
root@alex-ec-2:/home/alex# source /etc/bash_completion

0 commit comments

Comments
 (0)