HTTP Proxy Override Files
An HTTP proxy configuration can be used when creating your AMI image. The Ansible playbooks will create systemd
drop-in files for containerd
and kubelet
to configure the http_proxy
, http_proxy
, and no_proxy
environment variables for the service from the file /etc/konvoy_http_proxy.conf
.
To configure a proxy for use during image creation, create a new override file and specify the following:
# Example override-proxy.yaml
---
http_proxy: http://example.org:8080
https_proxy: http://example.org:8081
no_proxy: example.org,example.com,example.net
These values are only used for the image creation. After the image is created, the Ansible playbooks remove the /etc/konvoy_http_proxy.conf
file.
The dkp
command can be used to configure the KubeadmConfigTemplate
object to create this file on bootup of the image with values supplied during the dkp
invocation. This enables using different proxy settings for image creation and runtime.