Skip to content

Hosting issues at dl.k8s.io #8289

@djpimp2010

Description

@djpimp2010

One of the services I manage uses kubectl in a gitlab pipeline, to update the cluster after a new docker container upload.

Here is the line from the pipeline bash script, to install the executable on the pipeline:

curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"

A couple of months ago, I noticed at least a few times a day, pipelines were failing at this point - it looks as if the stable.txt request is the culprit, as the error states a malformed URL

Here is a copy of the error message:

$ curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
curl: Failed to extract a sensible file name from the URL to use for storage!
curl: (3) URL using bad/illegal format or missing URL

Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit code 1

I am unsure if its maybe a DNS issue, or a load balancing issue, or other cause, but its happening often enough that I feel as a developer / dev/ops guy, I should inform whoever necessary to look into this issue - if it affects me, it affects others.

I am quite capable of wrapping the script in a try until this works function, but that's a half baked solution - when in reality, I should report this, and have the stability fixed for everyone.

Usually I can re-run the pipeline, and it works, so it's an intermittent issue, and I'm not sure how I would reproduce it. If necessary, I could possibly modify the gitlab.ci to run the commands separately and log the output etc, to try and find the root cause if it happens again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    sig/k8s-infraCategorizes an issue or PR as relevant to SIG K8s Infra.triage/needs-informationIndicates an issue needs more information in order to work on it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions