Skip to content

Commit

Permalink
Update proxy.md (#742)
Browse files Browse the repository at this point in the history
Remove references to Juju in the note and reword the requirement to include the pod range and local networks in the `no_proxy` lists.
  • Loading branch information
mateoflorido authored Oct 16, 2024
1 parent af047ce commit 78a3a88
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions docs/src/snap/howto/proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ to fetch resources they expect to find on the internet. In a constrained
network environment, such access is usually controlled through proxies.

To set up a proxy using squid follow the
[how-to-install-a-squid-server][squid] tutorial.
[How to install a Squid server][squid] tutorial.

## Adding proxy configuration for the k8s snap

Expand Down Expand Up @@ -37,19 +37,21 @@ Environment="no_proxy=10.0.0.0/8,10.152.183.1,192.168.0.0/16,127.0.0.1,172.16.0.

Note that you may need to restart for these settings to take effect.

```{note} The **10.152.183.0/24** CIDR needs to be covered in the juju-no-proxy
list as it is the Kubernetes service CIDR. Without this any pods will not be
able to reach the cluster's kubernetes-api. You should also exclude the range
used by pods (which defaults to **10.1.0.0/16**) and any required
local networks.

```{note} Include the CIDR **10.152.183.0/24** in both the
`no_proxy` and `NO_PROXY` environment variables, as it's the default Kubernetes
service CIDR. If you are using a different service CIDR, update this setting
accordingly. This ensures pods can access the cluster's Kubernetes API Server.
Also, include the default pod range (**10.1.0.0/16**) and any local networks
needed.
```

## Adding proxy configuration for the k8s charms

Proxy configuration is handled by Juju when deploying the `k8s` charms. Please
see the [documentation for adding proxy configuration via Juju].
see the [documentation for adding proxy configuration via Juju][juju-proxy].

<!-- LINKS -->

[documentation for adding proxy configuration via Juju]: /charm/howto/proxy
[juju-proxy]: /charm/howto/proxy
[squid]: https://ubuntu.com/server/docs/how-to-install-a-squid-server

0 comments on commit 78a3a88

Please sign in to comment.