Skip to content

Commit 7fc430b

Browse files
authored
Merge pull request #3129 from replicatedhq/121499
Document ignore-host-preflights instead of skip
2 parents c89cf7f + 7374357 commit 7fc430b

File tree

2 files changed

+37
-8
lines changed

2 files changed

+37
-8
lines changed

docs/reference/embedded-cluster-install.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ sudo ./APP_SLUG install --license LICENSE_FILE [flags]
8282
<ProxyLimitations/>
8383
</td>
8484
</tr>
85+
<tr>
86+
<td>`--ignore-host-preflights`</td>
87+
<td>
88+
<p>When `--ignore-host-preflights` is passed, the host preflight checks are still run, but the user is prompted and can choose to continue with the installation if preflight failures occur. If there are no failed preflights, no user prompt is displayed. Additionally, the Admin Console still runs any application-specific preflight checks before the application is deployed. For more information about the Embedded Cluster host preflight checks, see [About Host Preflight Checks](/vendor/embedded-using#about-host-preflight-checks) in _Using Embedded Cluster_</p>
89+
<p>Ignoring host preflight checks is _not_ recommended for production installations.</p>
90+
</td>
91+
</tr>
8592
<tr>
8693
<td>`--local-artifact-mirror-port`</td>
8794
<td>
@@ -116,6 +123,13 @@ sudo ./APP_SLUG install --license LICENSE_FILE [flags]
116123
<p>The KOTS [PrivateCACert](/reference/template-functions-static-context#privatecacert) template function returns the ConfigMap containing the private CA certificates supplied with the `--private-ca` flag. You can use this template function to mount the ConfigMap so your containers trust the CA too.</p>
117124
</td>
118125
</tr>
126+
<tr>
127+
<td>`--yes`</td>
128+
<td>
129+
<p>In Embedded Cluster 1.21.0 and later, pass the `--yes` flag to provide an affirmative response to any user prompts for the command. For example, you can pass `--yes` with the `--ignore-host-preflights` flag to ignore host preflight checks during automated installations.</p>
130+
<p>**Requirement:** Embedded Cluster 1.21.0 and later</p>
131+
</td>
132+
</tr>
119133
</table>
120134

121135
## Examples

docs/vendor/embedded-using.mdx

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,20 +109,35 @@ Embedded Cluster host preflight checks have the following limitations:
109109
* The default host preflight checks for Embedded Cluster cannot be modified, and vendors cannot provide their own custom host preflight spec for Embedded Cluster.
110110
* 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).
111111

112-
#### Skip Host Preflight Checks
112+
#### Ignore Host Preflight Checks
113113

114-
You can skip host preflight checks by passing the `--skip-host-preflights` flag with the Embedded Cluster `install` command. For example:
114+
You can pass the `--ignore-host-preflights` flag with the install command to ignore the Embedded Cluster host preflight checks. When `--ignore-host-preflights` is passed, the host preflight checks are still run, but the user is prompted and can choose to continue with the installation if preflight failures occur. If there are no failed preflights, no user prompt is displayed. The `--ignore-host-preflights` flag allows users to see any incompatibilities in their environment, while enabling them to bypass failures if necessary.
115115

116-
```bash
117-
sudo ./my-app install --license license.yaml --skip-host-preflights
118-
```
119-
120-
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.
116+
Additionally, if users choose to ignore the host preflight checks during installation, the Admin Console still runs any application-specific preflight checks before the application is deployed.
121117

122118
:::note
123-
Skipping host preflight checks is _not_ recommended for production installations.
119+
Ignoring host preflight checks is _not_ recommended for production installations.
124120
:::
125121

122+
To ignore the Embedded Cluster host preflight checks:
123+
124+
* **During installation:**
125+
126+
1. Pass the `--ignore-host-preflights` flag with the install command:
127+
128+
```bash
129+
sudo ./APP_SLUG install --license license.yaml --ignore-host-preflights
130+
```
131+
Where `APP_SLUG` is the unique slug for the application.
132+
133+
1. Review the results of the preflight checks. When prompted, type `yes` to ignore the preflight checks.
134+
135+
* **In automation:** Use both the `--ignore-host-preflights` and `--yes` flags to address the prompt for `--ignore-host-preflights`.
136+
137+
```bash
138+
sudo ./APP_SLUG install --license license.yaml --ignore-host-preflights --yes
139+
```
140+
126141
## About Managing Multi-Node Clusters with Embedded Cluster
127142

128143
This section describes managing nodes in multi-node clusters created with Embedded Cluster.

0 commit comments

Comments
 (0)