configure the microk8s proxy

Bug #2025186 reported by Andrea Ieri
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Snap
Fix Committed
Low
Hemanth Nakkina

Bug Description

In some environments pulling images directly from registries can be challenging. Given that the microk8s charm allows specifying proxies via the containerd_env charm option, the sunbeam cli could ask the user for a proxy host during the bootstrapping stage and automate configuring microk8s accordingly.

Revision history for this message
Samuel Allan (samuelallan) wrote :

To add more context and an example, this means that deploying on an instance in serverstack (as we do for testing) fails at the microk8s stage. We can workaround for now by running this during this stage:

```
juju config -m admin/controller microk8s containerd_env="\
# This file is managed by Juju. Manual changes may be lost at any time.
# Configure limits for locked memory and maximum number of open files
ulimit -n 65536 || true
ulimit -l 16384 || true
# Uncomment to configure a proxy for containerd
HTTP_PROXY=http://squid.internal:3128
HTTPS_PROXY=http://squid.internal:3128
NO_PROXY=10.0.0.0/8,127.0.0.0/16,192.168.0.0/16
"
```

Revision history for this message
Hemanth Nakkina (hemanth-n) wrote :

This feature has been implemented in sunbeam and available in 2023.2/edge

Changed in snap-openstack:
assignee: nobody → Hemanth Nakkina (hemanth-n)
importance: Undecided → Low
status: New → Triaged
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.