Имеется сервер с РЕД ОС 8 в локальной сети. Пытаюсь настроить одно-нодовый кластер по
этой инструкции. Интернет получаем через прокси-сервер Squid 6.6.
Настройки прокси добавлены в systemd юнит containerd:
cat /etc/systemd/system/containerd.service.d/override.conf
[Service]
Environment="HTTP_PROXY=http://172.16.8.21:3128"
Environment="HTTPS_PROXY=https://172.16.8.21:3128"
Environment="NO_PROXY=localhost,127.0.0.1,172.16.8.0/24"
Но при попытке получить нужные образы, я получаю ошибку:
Текст ошибки# kubeadm config images pull
I0109 10:53:41.259311 3965 version.go:256] remote version is much newer: v1.32.0; falling back to: stable-1.30
failed to pull image "registry.k8s.io/kube-apiserver:v1.30.8": output: E0109 10:53:42.325327 4000 remote_image.go:180] "PullImage from image service failed" err="rpc error: code = Unknown desc = failed to pull and unpack image \"registry.k8s.io/kube-apiserver:v1.30.8\": failed to resolve reference \"registry.k8s.io/kube-apiserver:v1.30.8\": failed to do request: Head \"https://registry.k8s.io/v2/kube-apiserver/manifests/v1.30.8\": proxyconnect tcp: tls: first record does not look like a TLS handshake" image="registry.k8s.io/kube-apiserver:v1.30.8"
time="2025-01-09T10:53:42+05:00" level=fatal msg="pulling image: failed to pull and unpack image \"registry.k8s.io/kube-apiserver:v1.30.8\": failed to resolve reference \"registry.k8s.io/kube-apiserver:v1.30.8\": failed to do request: Head \"https://registry.k8s.io/v2/kube-apiserver/manifests/v1.30.8\": proxyconnect tcp: tls: first record does not look like a TLS handshake"
, error: exit status 1
To see the stack trace of this error execute with --v=5 or higher
Подскажите, как настроить kubernetes чтобы он корректно работал с прокси?