configure the microk8s proxy
Bug #2025186 reported by
Andrea Ieri
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.
To post a comment you must log in.
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:
``` squid.internal: 3128 squid.internal: 3128 10.0.0. 0/8,127. 0.0.0/16, 192.168. 0.0/16
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://
HTTPS_PROXY=http://
NO_PROXY=
"
```