Skip to content

Commit 5145272

Browse files
lennessyyLenny Chenkarl-cardenas-coding
authored
docs: add instructions for proxy (#4543)
* docs: add instructions for proxy * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Karl Cardenas <[email protected]> * ci: auto-formatting prettier issues --------- Co-authored-by: Lenny Chen <[email protected]> Co-authored-by: Karl Cardenas <[email protected]> Co-authored-by: lennessyy <[email protected]>
1 parent 3b60199 commit 5145272

File tree

1 file changed

+78
-38
lines changed

1 file changed

+78
-38
lines changed

docs/docs-content/deployment-modes/agent-mode/install-agent-host.md

Lines changed: 78 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,32 @@ Palette. You will then create a cluster profile and use the registered host to d
9393
export TOKEN=<your-palette-registration-token>
9494
```
9595

96-
3. Issue the command below to create the **user-data** file and configure your host declaratively.
96+
3. (Optional) If you are not installing the agent on a host that accesses the internet via a proxy, skip this step.
97+
98+
If you are installing the agent on a host that accesses the internet via a network proxy, export the proxy
99+
configurations in your current terminal session. We recommend exporting the variables both in uppercase and lowercase
100+
to ensure compatibility. Replace `<httpProxyAddress>` and `<httpsProxyAddress>` with the address and port to your
101+
HTTP and HTTPS proxy servers, respectively.
102+
103+
```shell
104+
export http_proxy=<httpProxyAddress>
105+
export https_proxy=<httpsProxyAddress>
106+
export HTTP_PROXY=<httpProxyAddress>
107+
export HTTPS_PROXY=<httpsProxyAddress>
108+
```
109+
110+
4. Issue the command below to create the **user-data** file and configure your host declaratively.
111+
112+
:::info
113+
114+
If your host needs a proxy to access the internet, you need to provide the proxy configurations in the user data as
115+
well. For more information, refer to
116+
[Site Network Parameters](../../clusters/edge/edge-configuration/installer-reference.md#site-network-parameters).
117+
118+
Alternatively, you can install the agent first and configure proxy in Local UI. For more information, refer to
119+
[Configure HTTP Proxy](../../clusters/edge/local-ui/host-management/configure-proxy.md).
120+
121+
:::
97122

98123
The following configuration includes the default Palette endpoint, a registration token, and sets up the `kairos`
99124
user. The host will not shut down and will reboot after the agent installation, with
@@ -153,13 +178,13 @@ Palette. You will then create a cluster profile and use the registered host to d
153178
passwd: kairos
154179
```
155180
156-
4. Export the path to your user data file.
181+
5. Export the path to your user data file.
157182
158183
```shell
159184
export USERDATA=./user-data
160185
```
161186
162-
5. Download the latest version of the Palette agent installation script.
187+
6. Download the latest version of the Palette agent installation script.
163188
164189
```shell
165190
curl --location --output ./palette-agent-install.sh https://github.com/spectrocloud/agent-mode/releases/latest/download/palette-agent-install.sh
@@ -184,13 +209,13 @@ Palette. You will then create a cluster profile and use the registered host to d
184209
curl --location --output ./palette-agent-install.sh https://github.com/spectrocloud/agent-mode/releases/download/<stylus-version>/palette-agent-install.sh
185210
```
186211
187-
6. Grant execution permissions to the `install.sh` script.
212+
7. Grant execution permissions to the `install.sh` script.
188213
189214
```shell
190215
chmod +x ./palette-agent-install.sh
191216
```
192217
193-
7. Issue the following command to install the agent on your host.
218+
8. Issue the following command to install the agent on your host.
194219
195220
```shell
196221
sudo --preserve-env ./palette-agent-install.sh
@@ -204,36 +229,36 @@ Palette. You will then create a cluster profile and use the registered host to d
204229
Connection to 192.168.1.100 closed.
205230
```
206231
207-
8. Upon agent installation, the host will reboot to the registration screen and use the provided `EdgeHostToken` for
232+
9. Upon agent installation, the host will reboot to the registration screen and use the provided `EdgeHostToken` for
208233
automatic registration with Palette. The host will be registered in the same project where the registration token was
209234
created.
210235
211-
9. Log in to [Palette](https://console.spectrocloud.com/) and select **Clusters** from the left **Main Menu**.
236+
10. Log in to [Palette](https://console.spectrocloud.com/) and select **Clusters** from the left **Main Menu**.
212237
213-
10. Select the **Edge Hosts** tab and verify your host is displayed and marked as **Healthy** in the Edge hosts list.
238+
11. Select the **Edge Hosts** tab and verify your host is displayed and marked as **Healthy** in the Edge hosts list.
214239
215-
11. Once the host has been registered with Palette, proceed with the cluster profile creation. Select **Profiles** from
240+
12. Once the host has been registered with Palette, proceed with the cluster profile creation. Select **Profiles** from
216241
the left **Main Menu**.
217242
218-
12. Click on **Add Cluster Profile**.
243+
13. Click on **Add Cluster Profile**.
219244
220-
13. In the **Basic Information** section, assign the a profile name, a description, and tags. Select the type as
245+
14. In the **Basic Information** section, assign the a profile name, a description, and tags. Select the type as
221246
**Full** and click **Next**.
222247
223-
14. Select **Edge Native** as the **Cloud Type** and click **Next**.
248+
15. Select **Edge Native** as the **Cloud Type** and click **Next**.
224249
225-
15. The **Profile Layers** section specifies the packs that compose the profile. Add the **BYOS Edge OS** pack version
250+
16. The **Profile Layers** section specifies the packs that compose the profile. Add the **BYOS Edge OS** pack version
226251
**2.0.0** to the OS layer.
227252
228-
16. Click **Values** under **Pack Details**, then click on **Presets** on the right-hand side. Select **Agent Mode**.
253+
17. Click **Values** under **Pack Details**, then click on **Presets** on the right-hand side. Select **Agent Mode**.
229254
230255
![View of the cluster profile creation page with the BYOS pack.](/deployment-modes_agent-mode_byos-pack.webp)
231256
232-
17. Click **Next Layer** to continue.
257+
18. Click **Next Layer** to continue.
233258
234-
18. Complete the cluster profile creation process by filling out the remaining layers.
259+
19. Complete the cluster profile creation process by filling out the remaining layers.
235260
236-
19. Follow the steps in the [Create Cluster Definition](../../clusters/edge/site-deployment/model-profile.md) guide to
261+
20. Follow the steps in the [Create Cluster Definition](../../clusters/edge/site-deployment/model-profile.md) guide to
237262
deploy a cluster using your registered host as a cluster node.
238263
239264
</TabItem>
@@ -285,15 +310,30 @@ internet.
285310
export USERDATA=./user-data
286311
```
287312
288-
4. Download the agent installation image from a host with internet access and export it to a TAR file. Replace
313+
4. (Optional) If you are not accessing the internet via a proxy, skip this step.
314+
315+
If you are downloading the agent on a host that accesses the internet via a proxy network, export the proxy
316+
configurations in your current terminal session so that the script downloading the agent binary can execute
317+
successfully. We recommend exporting the variables both in uppercase and lowercase to ensure compatibility. Replace
318+
`<httpProxyAddress>` and `<httpsProxyAddress>` with the address and port to your HTTP and HTTPS proxy servers,
319+
respectively.
320+
321+
```shell
322+
export http_proxy=<httpProxyAddress>
323+
export https_proxy=<httpsProxyAddress>
324+
export HTTP_PROXY=<httpProxyAddress>
325+
export HTTPS_PROXY=<httpsProxyAddress>
326+
```
327+
328+
5. Download the agent installation image from a host with internet access and export it to a TAR file. Replace
289329
`<architecture>` with the architecture of your CPU. If you have ARM64, use `arm64`. If you have AMD64 or x86_64, use
290330
`amd64`. Replace `<version>` with the desired version number. In this example, we use `v4.5.0`.
291331
292332
```shell
293333
crane pull us-docker.pkg.dev/palette-images/edge/stylus-agent-mode-linux-<architecture>:<version> agent-image.tar
294334
```
295335
296-
5. Issue the following command from a host with internet access to download the agent binary and name the binary
336+
6. Issue the following command from a host with internet access to download the agent binary and name the binary
297337
`palette-agent`. Replace `<architecture>` with the architecture of your CPU. If you have ARM64, use `arm64`. If you
298338
have AMD64 or x86_64, use `amd64`. Replace `<version>` with the desired version number. In this example, we use
299339
`v4.5.0`.
@@ -303,16 +343,16 @@ internet.
303343
curl --verbose --location $URL --output palette-agent
304344
```
305345
306-
6. Issue the following command to make the binary executable.
346+
7. Issue the following command to make the binary executable.
307347
308348
```shell
309349
chmod +x palette-agent
310350
```
311351
312-
7. Copy the agent binary as well as the agent image TAR file from your host with internet access to the host where you
352+
8. Copy the agent binary as well as the agent image TAR file from your host with internet access to the host where you
313353
want to install the Palette agent.
314354
315-
8. Issue the following command to install the agent on your host. Replace `<image-tag>` with the tag of the installation
355+
9. Issue the following command to install the agent on your host. Replace `<image-tag>` with the tag of the installation
316356
image. If your user data is not in the current directory, replace `./user-data` with the path to your user data file.
317357
If your agent image TAR file is not in the current directory, replace `./agent-image.tar` with the path to your image
318358
TAR file.
@@ -329,30 +369,30 @@ internet.
329369
Connection to 192.168.1.100 closed.
330370
```
331371
332-
9. Log in to [Palette](https://console.spectrocloud.com/) and select **Clusters** from the left **Main Menu**.
372+
10. Log in to [Palette](https://console.spectrocloud.com/) and select **Clusters** from the left **Main Menu**.
333373
334-
10. Select the **Edge Hosts** tab and verify your host is displayed and marked as **Healthy** in the Edge hosts list.
374+
11. Select the **Edge Hosts** tab and verify your host is displayed and marked as **Healthy** in the Edge hosts list.
335375
336-
11. Once the host has been registered with Palette, proceed with the cluster profile creation. Select **Profiles** from
376+
12. Once the host has been registered with Palette, proceed with the cluster profile creation. Select **Profiles** from
337377
the left **Main Menu**.
338378
339-
12. Click on **Add Cluster Profile**.
379+
13. Click on **Add Cluster Profile**.
340380
341-
13. In the **Basic Information** section, assign the a profile name, a description, and tags. Select the type as
381+
14. In the **Basic Information** section, assign the a profile name, a description, and tags. Select the type as
342382
**Full** and click **Next**.
343383
344-
14. Select **Edge Native** as the **Cloud Type** and click **Next**.
384+
15. Select **Edge Native** as the **Cloud Type** and click **Next**.
345385
346-
15. The **Profile Layers** section specifies the packs that compose the profile. Add the **BYOS Edge OS** pack version
386+
16. The **Profile Layers** section specifies the packs that compose the profile. Add the **BYOS Edge OS** pack version
347387
**2.0.0** to the OS layer.
348388
349-
16. Click **Values** under **Pack Details**, then click on **Presets** on the right-hand side. Select **Agent Mode**.
389+
17. Click **Values** under **Pack Details**, then click on **Presets** on the right-hand side. Select **Agent Mode**.
350390
351391
![View of the cluster profile creation page with the BYOS pack.](/deployment-modes_agent-mode_byos-pack.webp)
352392
353-
17. Click **Next Layer** to continue.
393+
18. Click **Next Layer** to continue.
354394
355-
18. In the **Kubernetes** layer, under `cluster.config.kube-apiserver-arg`, remove `AlwaysPullImages` from the list item
395+
19. In the **Kubernetes** layer, under `cluster.config.kube-apiserver-arg`, remove `AlwaysPullImages` from the list item
356396
`enable-admission-plugins`:
357397
358398
```yaml {7}
@@ -365,28 +405,28 @@ internet.
365405
- enable-admission-plugins=NamespaceLifecycle,ServiceAccount,NodeRestriction
366406
```
367407
368-
19. Complete the cluster profile creation process by filling out the remaining layers. In the application layer, make
408+
20. Complete the cluster profile creation process by filling out the remaining layers. In the application layer, make
369409
sure you include the **Harbor Edge-Native Config** pack. This pack is required for airgapped clusters.
370410
371-
20. Follow the steps in
411+
21. Follow the steps in
372412
[Export Cluster Definition](../../clusters/edge/local-ui/cluster-management/export-cluster-definition.md) to export
373413
a cluster definition of your profile. You will use this cluster definition later when you create the cluster in
374414
Local UI.
375415
376-
21. (Optional) If your host has access to all the images referenced by your cluster profile, you may skip this step.
416+
22. (Optional) If your host has access to all the images referenced by your cluster profile, you may skip this step.
377417
378418
Follow the steps in
379419
[Build Content Bundles](../../clusters/edge/edgeforge-workflow/palette-canvos/build-content-bundle.md) to build a
380420
content bundle for your cluster profile. The content bundle will contain all the artifacts required to create your
381421
cluster and it will allow you to create a cluster even if your host has no access to an external image registry.
382422
383-
22. Log in to [Local UI](../../clusters/edge/local-ui/host-management/access-console.md).
423+
23. Log in to [Local UI](../../clusters/edge/local-ui/host-management/access-console.md).
384424
385-
23. Follow the steps in
425+
24. Follow the steps in
386426
[Upload Content Bundles](../../clusters/edge/local-ui/cluster-management/upload-content-bundle.md) to upload the
387427
content bundle to your host.
388428
389-
24. Follow the steps in [Create Local Cluster](../../clusters/edge/local-ui/cluster-management/create-cluster.md) to use
429+
25. Follow the steps in [Create Local Cluster](../../clusters/edge/local-ui/cluster-management/create-cluster.md) to use
390430
the cluster definition you exported previously to create a cluster.
391431
392432
</TabItem>

0 commit comments

Comments
 (0)