Skip to content

Commit

Permalink
Merge pull request #1285 from emilianolangella/patch-1
Browse files Browse the repository at this point in the history
Update use-fleet-behind-a-proxy.md
  • Loading branch information
btat authored Jul 9, 2024
2 parents 3710dae + 55e5ff5 commit 1f11354
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 6 deletions.
20 changes: 18 additions & 2 deletions docs/integrations-in-rancher/fleet/use-fleet-behind-a-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,20 @@ When adding Fleet agent environment variables for the proxy, replace <PROXY_IP>

## Setting Environment Variables in the Rancher UI

To add the environment variable to an existing cluster,
To add the environment variable to an existing cluster:

<Tabs groupId="k8s-distro">
<TabItem value="RKE2/K3s" default>

1. Click **☰ > Cluster Management**.
1. Go to the cluster where you want to add environment variables and click **⋮ > Edit Config**.
1. Click **Agent Environment Vars** under **Cluster configuration**.
1. Click **Add**.
1. Enter the [required environment variables](#required-environment-variables)
1. Click **Save**.

</TabItem>
<TabItem value="RKE">

1. Click **☰ > Cluster Management**.
1. Go to the cluster where you want to add environment variables and click **⋮ > Edit Config**.
Expand All @@ -39,6 +52,9 @@ To add the environment variable to an existing cluster,
1. Enter the [required environment variables](#required-environment-variables)
1. Click **Save**.

</TabItem>
</Tabs>

**Result:** The Fleet agent works behind a proxy.

## Setting Environment Variables on Private Nodes
Expand All @@ -55,4 +71,4 @@ export HTTP_PROXY=http://${proxy_private_ip}:8888
export HTTPS_PROXY=http://${proxy_private_ip}:8888
export NO_PROXY=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,.svc,.cluster.local
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,20 @@ When adding Fleet agent environment variables for the proxy, replace <PROXY_IP>

## Setting Environment Variables in the Rancher UI

To add the environment variable to an existing cluster,
To add the environment variable to an existing cluster:

<Tabs groupId="k8s-distro">
<TabItem value="RKE2/K3s" default>

1. Click **☰ > Cluster Management**.
1. Go to the cluster where you want to add environment variables and click **⋮ > Edit Config**.
1. Click **Agent Environment Vars** under **Cluster configuration**.
1. Click **Add**.
1. Enter the [required environment variables](#required-environment-variables)
1. Click **Save**.

</TabItem>
<TabItem value="RKE">

1. Click **☰ > Cluster Management**.
1. Go to the cluster where you want to add environment variables and click **⋮ > Edit Config**.
Expand All @@ -39,6 +52,9 @@ To add the environment variable to an existing cluster,
1. Enter the [required environment variables](#required-environment-variables)
1. Click **Save**.

</TabItem>
</Tabs>

**Result:** The Fleet agent works behind a proxy.

## Setting Environment Variables on Private Nodes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,20 @@ When adding Fleet agent environment variables for the proxy, replace <PROXY_IP>

## Setting Environment Variables in the Rancher UI

To add the environment variable to an existing cluster,
To add the environment variable to an existing cluster:

<Tabs groupId="k8s-distro">
<TabItem value="RKE2/K3s" default>

1. Click **☰ > Cluster Management**.
1. Go to the cluster where you want to add environment variables and click **⋮ > Edit Config**.
1. Click **Agent Environment Vars** under **Cluster configuration**.
1. Click **Add**.
1. Enter the [required environment variables](#required-environment-variables)
1. Click **Save**.

</TabItem>
<TabItem value="RKE">

1. Click **☰ > Cluster Management**.
1. Go to the cluster where you want to add environment variables and click **⋮ > Edit Config**.
Expand All @@ -39,6 +52,9 @@ To add the environment variable to an existing cluster,
1. Enter the [required environment variables](#required-environment-variables)
1. Click **Save**.

</TabItem>
</Tabs>

**Result:** The Fleet agent works behind a proxy.

## Setting Environment Variables on Private Nodes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,20 @@ When adding Fleet agent environment variables for the proxy, replace <PROXY_IP>

## Setting Environment Variables in the Rancher UI

To add the environment variable to an existing cluster,
To add the environment variable to an existing cluster:

<Tabs groupId="k8s-distro">
<TabItem value="RKE2/K3s" default>

1. Click **☰ > Cluster Management**.
1. Go to the cluster where you want to add environment variables and click **⋮ > Edit Config**.
1. Click **Agent Environment Vars** under **Cluster configuration**.
1. Click **Add**.
1. Enter the [required environment variables](#required-environment-variables)
1. Click **Save**.

</TabItem>
<TabItem value="RKE">

1. Click **☰ > Cluster Management**.
1. Go to the cluster where you want to add environment variables and click **⋮ > Edit Config**.
Expand All @@ -39,6 +52,9 @@ To add the environment variable to an existing cluster,
1. Enter the [required environment variables](#required-environment-variables)
1. Click **Save**.

</TabItem>
</Tabs>

**Result:** The Fleet agent works behind a proxy.

## Setting Environment Variables on Private Nodes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,20 @@ When adding Fleet agent environment variables for the proxy, replace <PROXY_IP>

## Setting Environment Variables in the Rancher UI

To add the environment variable to an existing cluster,
To add the environment variable to an existing cluster:

<Tabs groupId="k8s-distro">
<TabItem value="RKE2/K3s" default>

1. Click **☰ > Cluster Management**.
1. Go to the cluster where you want to add environment variables and click **⋮ > Edit Config**.
1. Click **Agent Environment Vars** under **Cluster configuration**.
1. Click **Add**.
1. Enter the [required environment variables](#required-environment-variables)
1. Click **Save**.

</TabItem>
<TabItem value="RKE">

1. Click **☰ > Cluster Management**.
1. Go to the cluster where you want to add environment variables and click **⋮ > Edit Config**.
Expand All @@ -39,6 +52,9 @@ To add the environment variable to an existing cluster,
1. Enter the [required environment variables](#required-environment-variables)
1. Click **Save**.

</TabItem>
</Tabs>

**Result:** The Fleet agent works behind a proxy.

## Setting Environment Variables on Private Nodes
Expand Down

0 comments on commit 1f11354

Please sign in to comment.