Skip to content

Correct configuration for cri-o proxy settings #177

Description

@cpaggen

Proxy for cri-o is found under /usr/lib/systemd/system/crio.service in the Environment variable, under [Service]. It appears values just need to be space-separated, like shown below.
Be careful that only one Environment statement can be declared. Default settings include Environment=GOTRACEBACK=crash without any quotes.

If the UI passes PROXY=on (or True), the fix should destroy that line and create a new one as shown below:

[Unit]
Description=Container Runtime Interface for OCI (CRI-O)
Documentation=https://github.com/cri-o/cri-o
Wants=network-online.target
Before=kubelet.service
After=network-online.target

[Service]
Type=notify
EnvironmentFile=-/etc/default/crio
Environment=HTTPS_PROXY=http://proxy.esl.cisco.com:80 NO_PROXY=localhost,192.168.0.0/16 GOTRACEBACK=crash
ExecStart=/usr/bin/crio
$CRIO_CONFIG_OPTIONS
$CRIO_RUNTIME_OPTIONS
$CRIO_STORAGE_OPTIONS
$CRIO_NETWORK_OPTIONS
$CRIO_METRICS_OPTIONS
ExecReload=/bin/kill -s HUP $MAINPID
TasksMax=infinity
LimitNOFILE=1048576
LimitNPROC=1048576
LimitCORE=infinity
OOMScoreAdjust=-999
TimeoutStartSec=0
Restart=on-abnormal

[Install]
WantedBy=multi-user.target
Alias=cri-o.service

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions