Setting a Proxy Server for the Kubernetes Cluster
Set up the proxy configuration for the Kubernetes cluster.
If a proxy server is part of the environment in which a Kubernetes cluster is to be
deployed, you might need to set up the proxy server configuration for the cluster.
This configuration is set in the default configuration file ($HOME/.ocne/defaults.yaml
), or in a cluster configuration
file.
Use a configuration file (either the default configuration file, or a cluster configuration file) to set the proxy server information for the cluster. This information is used to set up CRI-O on the Kubernetes nodes.
Use the format:
proxy:
httpsProxy: proxy_server:port
httpProxy: proxy_server:port
noProxy: exclusion_list
For example:
proxy:
httpsProxy: http://myproxy.example.com:2138
httpProxy: http://myproxy.example.com:2138
noProxy: .example.com,127.0.0.1,localhost,169.254.169.254,10.96.0.0/12,10.244.0.0/16
The 169.254.169.254
IP address is
reserved by many cloud providers, including OCI, as the endpoint for compute
instances to access their own metadata. For more information on this IP
address and how it's used, see the OCI
documentation.
The 10.96.0.0/12
CIDR is the default range for the Kubernetes
service subnet. The 10.244.0.0/16
CIDR is the default range for the
Kubernetes pod network.