You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This topic describes how to access the cluster provisioned by Embedded Cluster using kubectl.
4
+
5
+
## Overview
6
+
7
+
With Embedded Cluster, end-users are rarely supposed to need to use the CLI. Typical workflows, like updating the application and the cluster, are driven through the Admin Console.
8
+
9
+
Nonetheless, there are times when vendors or their customers need to use the CLI for development or troubleshooting.
10
+
11
+
## Access the Cluster
12
+
13
+
To access the cluster and use other included binaries:
14
+
15
+
1. SSH onto a controller node.
16
+
17
+
1. Use the Embedded Cluster shell command to start a shell with access to the cluster:
18
+
19
+
```
20
+
sudo ./APP_SLUG shell
21
+
```
22
+
23
+
The output looks similar to the following:
24
+
```
25
+
__4___
26
+
_ \ \ \ \ Welcome to APP_SLUG debug shell.
27
+
<'\ /_/_/_/ This terminal is now configured to access your cluster.
The appropriate kubeconfig is exported, and the location of useful binaries like kubectl and Replicated’s preflight and support-bundle plugins is added to PATH.
38
+
39
+
:::note
40
+
You cannot run the `shell` command on worker nodes.
If you encounter a typical workflow where your customers have to use the Embedded Cluster shell, reach out to Alex Parker at [email protected]. These workflows might be candidates for additional Admin Console functionality.
This topic describes the host preflight checks that run as part of installation with Emebdded Cluster, including information about how to skip host preflights.
4
+
5
+
## Overview
6
+
7
+
During installation, Embedded Cluster automatically runs a default set of _host preflight checks_. The default host preflight checks are designed to verify that the installation environment meets the requirements for Embedded Cluster, such as:
8
+
* The system has sufficient disk space
9
+
* The system has at least 2G of memory and 2 CPU cores
10
+
* The system clock is synchronized
11
+
12
+
For Embedded Cluster requirements, see [Requirements](#requirements). For the full default host preflight spec for Embedded Cluster, see [`host-preflight.yaml`](https://github.com/replicatedhq/embedded-cluster/blob/main/pkg/preflights/host-preflight.yaml) in the `embedded-cluster` repository in GitHub.
13
+
14
+
If any of the host preflight checks fail, installation is blocked and a message describing the failure is displayed. For more information about host preflight checks for installations on VMs or bare metal servers, see [About Host Preflights](preflight-support-bundle-about#host-preflights).
15
+
16
+
## Limitations
17
+
18
+
Embedded Cluster host preflight checks have the following limitations:
19
+
20
+
* The default host preflight checks for Embedded Cluster cannot be modified, and vendors cannot provide their own custom host preflight spec for Embedded Cluster.
21
+
* Host preflight checks do not check that any application-specific requirements are met. For more information about defining preflight checks for your application, see [Defining Preflight Checks](/vendor/preflight-defining).
22
+
23
+
## Skip Host Preflight Checks
24
+
25
+
You can skip host preflight checks by passing the `--skip-host-preflights` flag with the Embedded Cluster `install` command. For example:
When you skip host preflight checks, the Admin Console still runs any application-specific preflight checks that are defined in the release before the application is deployed.
32
+
33
+
:::note
34
+
Skipping host preflight checks is _not_ recommended for production installations.
# Serve Embedded Cluster Installation Assets Using the Vendor API
2
+
3
+
This topic describes how to serve the installation assets for Replicated Embedded Cluster using the Vendor API v3.
4
+
5
+
## Overview
6
+
7
+
To install with Embedded Cluster, you need to download the Embedded Cluster installer binary and a license. Air gap installations also require an air gap bundle. Some vendors already have a portal where their customers can log in to access documentation or download artifacts. In cases like this, you can serve the Embedded Cluster installation essets yourself using the Replicated Vendor API, rather than having customers download the assets from the Replicated app service using a curl command during installation.
8
+
9
+
## Serve Assets with the API
10
+
11
+
To serve Embedded Cluster installation assets with the Vendor API v3:
12
+
13
+
1. If you have not done so already, create an API token for the Vendor API. See [Using the Vendor API v3](/reference/vendor-api-using#api-token-requirement).
14
+
15
+
1. Call the [Get an Embedded Cluster release](https://replicated-vendor-api.readme.io/reference/getembeddedclusterrelease) endpoint to download the assets needed to install your application with Embedded Cluster. Your customers must take this binary and their license and copy them to the machine where they will install your application.
16
+
17
+
Note the following:
18
+
19
+
* (Recommended) Provide the `customerId` query parameter so that the customer’s license is included in the downloaded tarball. This mirrors what is returned when a customer downloads the binary directly using the Replicated app service and is the most useful option. Excluding the `customerId` is useful if you plan to distribute the license separately.
20
+
21
+
* If you do not provide any query parameters, this endpoint downloads the Embedded Cluster binary for the latest release on the specified channel. You can provide the `channelSequence` query parameter to download the binary for a particular release.
This topic describes how to use the Replicated Embedded Cluster to configure, install, and manage your application in an embedded Kubernetes cluster.
13
13
@@ -79,11 +79,11 @@ Embedded Cluster has the following limitations:
79
79
80
80
## Quick Start
81
81
82
-
You can use the following steps to get started quickly with Embedded Cluster. More detailed documentation is available below.
82
+
If you already have a release for your application in the Vendor Portal that supports installation with Replicated KOTS, you can use the following steps to get started quickly with Embedded Cluster:
83
83
84
84
1. Create a new customer or edit an existing customer and select the **Embedded Cluster Enabled** license option. Save the customer.
85
85
86
-
1. Create a new release that includes your application. In that release, create an Embedded Cluster Config that includes, at minimum, the Embedded Cluster version you want to use. See the Embedded Cluster [GitHub repo](https://github.com/replicatedhq/embedded-cluster/releases) to find the latest version.
86
+
1. Create a new release that includes your application as well as the KOTS custom resources. In that release, create an Embedded Cluster Config that includes, at minimum, the Embedded Cluster version you want to use. See the Embedded Cluster [GitHub repo](https://github.com/replicatedhq/embedded-cluster/releases) to find the latest version.
87
87
88
88
Example Embedded Cluster Config:
89
89
@@ -135,54 +135,6 @@ To install with Embedded Cluster, you can follow the customer-specific instructi
135
135
136
136
[View a larger version of this image](/images/embedded-cluster-install-dialog.png)
137
137
138
-
### (Optional) Serve Installation Assets Using the Vendor API
139
-
140
-
To install with Embedded Cluster, you need to download the Embedded Cluster installer binary and a license. Air gap installations also require an air gap bundle. Some vendors already have a portal where their customers can log in to access documentation or download artifacts. In cases like this, you can serve the Embedded Cluster installation essets yourself using the Replicated Vendor API, rather than having customers download the assets from the Replicated app service using a curl command during installation.
141
-
142
-
To serve Embedded Cluster installation assets with the Vendor API:
143
-
144
-
1. If you have not done so already, create an API token for the Vendor API. See [Using the Vendor API v3](/reference/vendor-api-using#api-token-requirement).
145
-
146
-
1. Call the [Get an Embedded Cluster release](https://replicated-vendor-api.readme.io/reference/getembeddedclusterrelease) endpoint to download the assets needed to install your application with Embedded Cluster. Your customers must take this binary and their license and copy them to the machine where they will install your application.
147
-
148
-
Note the following:
149
-
150
-
* (Recommended) Provide the `customerId` query parameter so that the customer’s license is included in the downloaded tarball. This mirrors what is returned when a customer downloads the binary directly using the Replicated app service and is the most useful option. Excluding the `customerId` is useful if you plan to distribute the license separately.
151
-
152
-
* If you do not provide any query parameters, this endpoint downloads the Embedded Cluster binary for the latest release on the specified channel. You can provide the `channelSequence` query parameter to download the binary for a particular release.
153
-
154
-
### About Host Preflight Checks
155
-
156
-
During installation, Embedded Cluster automatically runs a default set of _host preflight checks_. The default host preflight checks are designed to verify that the installation environment meets the requirements for Embedded Cluster, such as:
157
-
* The system has sufficient disk space
158
-
* The system has at least 2G of memory and 2 CPU cores
159
-
* The system clock is synchronized
160
-
161
-
For Embedded Cluster requirements, see [Requirements](#requirements). For the full default host preflight spec for Embedded Cluster, see [`host-preflight.yaml`](https://github.com/replicatedhq/embedded-cluster/blob/main/pkg/preflights/host-preflight.yaml) in the `embedded-cluster` repository in GitHub.
162
-
163
-
If any of the host preflight checks fail, installation is blocked and a message describing the failure is displayed. For more information about host preflight checks for installations on VMs or bare metal servers, see [About Host Preflights](preflight-support-bundle-about#host-preflights).
164
-
165
-
#### Limitations
166
-
167
-
Embedded Cluster host preflight checks have the following limitations:
168
-
169
-
* The default host preflight checks for Embedded Cluster cannot be modified, and vendors cannot provide their own custom host preflight spec for Embedded Cluster.
170
-
* Host preflight checks do not check that any application-specific requirements are met. For more information about defining preflight checks for your application, see [Defining Preflight Checks](/vendor/preflight-defining).
171
-
172
-
#### Skip Host Preflight Checks
173
-
174
-
You can skip host preflight checks by passing the `--skip-host-preflights` flag with the Embedded Cluster `install` command. For example:
When you skip host preflight checks, the Admin Console still runs any application-specific preflight checks that are defined in the release before the application is deployed.
181
-
182
-
:::note
183
-
Skipping host preflight checks is _not_ recommended for production installations.
184
-
:::
185
-
186
138
## About Managing Multi-Node Clusters with Embedded Cluster
187
139
188
140
This section describes managing nodes in multi-node clusters created with Embedded Cluster.
@@ -211,83 +163,11 @@ For more information about creating HA multi-node clusters with Embedded Cluster
211
163
212
164
For more information about updating, see [Performing Updates with Embedded Cluster](/enterprise/updating-embedded).
213
165
214
-
## Access the Cluster
215
-
216
-
With Embedded Cluster, end-users are rarely supposed to need to use the CLI. Typical workflows, like updating the application and the cluster, are driven through the Admin Console.
217
-
218
-
Nonetheless, there are times when vendors or their customers need to use the CLI for development or troubleshooting.
219
-
220
-
To access the cluster and use other included binaries:
221
-
222
-
1. SSH onto a controller node.
223
-
224
-
1. Use the Embedded Cluster shell command to start a shell with access to the cluster:
225
-
226
-
```
227
-
sudo ./APP_SLUG shell
228
-
```
229
-
230
-
The output looks similar to the following:
231
-
```
232
-
__4___
233
-
_ \ \ \ \ Welcome to APP_SLUG debug shell.
234
-
<'\ /_/_/_/ This terminal is now configured to access your cluster.
The appropriate kubeconfig is exported, and the location of useful binaries like kubectl and Replicated’s preflight and support-bundle plugins is added to PATH.
245
-
246
-
:::note
247
-
You cannot run the `shell` command on worker nodes.
If you encounter a typical workflow where your customers have to use the Embedded Cluster shell, reach out to Alex Parker at [email protected]. These workflows might be candidates for additional Admin Console functionality.
267
-
:::
268
-
269
-
## Reset a Node
270
-
271
-
Resetting a node removes the cluster and your application from that node. This is useful for iteration, development, and when mistakes are made, so you can reset a machine and reuse it instead of having to procure another machine.
272
-
273
-
If you want to completely remove a cluster, you need to reset each node individually.
274
-
275
-
When resetting a node, OpenEBS PVCs on the node are deleted. Only PVCs created as part of a StatefulSet will be recreated automatically on another node. To recreate other PVCs, the application will need to be redeployed.
276
-
277
-
To reset a node:
278
-
279
-
1. SSH onto the machine. Ensure that the Embedded Cluster binary is still available on that machine.
280
-
281
-
1. Run the following command to reset the node and automatically reboot the machine to ensure that transient configuration is also reset:
166
+
## Troubleshoot with Support Bundles
282
167
283
-
```
284
-
sudo ./APP_SLUG reset
285
-
```
286
-
Where `APP_SLUG` is the unique slug for the application.
168
+
<SupportBundleIntro/>
287
169
288
-
:::note
289
-
Pass the `--no-prompt` flag to disable interactive prompts. Pass the `--force` flag to ignore any errors encountered during the reset.
This topic describes how to use the Embedded Cluster `reset` command to reset a node.
4
+
5
+
## Overview
6
+
7
+
Resetting a node removes the cluster and your application from that node. This is useful for iteration, development, and when mistakes are made, so you can reset a machine and reuse it instead of having to procure another machine.
8
+
9
+
If you want to completely remove a cluster, you need to reset each node individually.
10
+
11
+
When resetting a node, OpenEBS PVCs on the node are deleted. Only PVCs created as part of a StatefulSet will be recreated automatically on another node. To recreate other PVCs, the application will need to be redeployed.
12
+
13
+
## Reset a Node
14
+
15
+
To reset a node:
16
+
17
+
1. SSH onto the machine. Ensure that the Embedded Cluster binary is still available on that machine.
18
+
19
+
1. Run the following command to reset the node and automatically reboot the machine to ensure that transient configuration is also reset:
20
+
21
+
```
22
+
sudo ./APP_SLUG reset
23
+
```
24
+
Where `APP_SLUG` is the unique slug for the application.
25
+
26
+
:::note
27
+
Pass the `--no-prompt` flag to disable interactive prompts. Pass the `--force` flag to ignore any errors encountered during the reset.
0 commit comments