Skip to content

[kubectl] Download kubectl from dl.k8s.io #412

@hcoona

Description

@hcoona

I don't know why but I noticed that many versions of kubectl for windows exists in dl.k8s.io but absent in storage.googleapis.com. The Kubernetes official document use dl.k8s.io. See https://github.com/kubernetes/website/blob/bf96dbe898c216334f78cfc5ccb4ef539cabba85/content/en/docs/tasks/tools/install-kubectl-windows.md?plain=1#L37

For example:

$ curl 'https://dl.k8s.io/release/v1.29.10/bin/windows/amd64/kubectl.exe'
<html>
<head><title>302 Found</title></head>
<body>
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
$ curl 'https://storage.googleapis.com/kubernetes-release/release/v1.29.10/bin/windows/amd64/kubectl.exe'
<?xml version='1.0' encoding='UTF-8'?><Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Details>No such object: kubernetes-release/release/v1.29.10/bin/windows/amd64/kubectl.exe</Details></Error>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions