Skip to content

Commit

Permalink
fix(platform): ignore registry cert (tkestack#2295)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Ryu authored May 29, 2023
1 parent 91d2cb0 commit 1909322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/platform/provider/baremetal/phases/image/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func PullKubernetesImages(c *v1.Cluster, s ssh.Interface, option *Option) error
return err
}
} else {
cmd = fmt.Sprintf("nerdctl -n k8s.io pull %s", image)
cmd = fmt.Sprintf("nerdctl --insecure-registry -n k8s.io pull %s", image)
_, err := s.CombinedOutput(cmd)
if err != nil {
if strings.Contains(err.Error(), "502 Bad Gateway") {
Expand Down

0 comments on commit 1909322

Please sign in to comment.