Forum Discussion

DerekHsueh's avatar
DerekHsueh
Level 4
2 years ago

deploy the NetBackup Kubernetes operator service fail with private registry (insecure)

Hello

My Problem:
# helm install netbackupkops ./netbackupkops-helm-chart/ -n netbackup
log show "server gave HTTP response to HTTPS client"
Can everyone give me some idea ?
Thank you.

1) log info
# kubectl describe pod netbackup-netbackup-config-deploy-687dcd8ddc-f7hxz -n netbackup

Type Reason Age From Message
---- ------ ---- ---- -------
Warning Failed 9m9s (x4 over 10m) kubelet Failed to pull image "private-storage:5000/nbk8splugin:v1": rpc error: code = Unknown desc = failed to pull and unpack image "private-storage:5000/nbk8splugin:v1": failed to resolve reference "private-storage:5000/nbk8splugin:v1": failed to do request: Head "https://private-storage:5000/v2/nbk8splugin/manifests/v1": http: server gave HTTP response to HTTPS client


2) My system info
# docker system info
Insecure Registries:
private-storage:5000

PS:
I always enable http(Insecure Registries) in the /etc/docker/daemon.json.
Because I only have a private docker registry.

I do test with Insecure Registries, success.
docker push <repo-name/image-name:tag-name>
docker pull <repo-name/image-name:tag-name>

 

 

  • This is my fault.
    I'm using the wrong version of helm.
    I use helm 3.11.1 + Kubernetes 1.27 .

    The following is correct.
    Helm Version Supported Kubernetes Versions
    3.11.x 1.26.x - 1.23.x
    https://helm.sh/docs/topics/version_skew/

    When downgrade to helm 3.11.1 + Kubernetes 1.25 , operator is OK.