Skip to content

--insecure-skip-tls-verify not working #31248

@cdprete

Description

@cdprete

What happened?

The --insecure-skip-tls-verify seems to not work when helm is used to install/upgrade a release on a cluster.

What did you expect to happen?

The TLS verification should be skipped also when installing/upgrading a release.

How can we reproduce it (as minimally and precisely as possible)?

$ helm upgrade "$RELEASE_NAME" "$CHART_PATH" --atomic -i --insecure-skip-tls-verify --namespace "$NAMESPACE_NAME" --kube-apiserver "$CI_ENVIRONMENT_URL" --kube-token "$OCP_DEPLOYER_TOKEN" -f "$CHART_PATH/environments/values-$ENV.yaml"

Error: Kubernetes cluster unreachable: Get "https://kubernetes.default:443/version": tls: failed to verify certificate: x509: certificate signed by unknown authority

Helm version

Details
version.BuildInfo{Version:"v3.18.6", GitCommit:"b76a950f6835474e0906b96c9ec68a2eff3a6430", GitTreeState:"clean", GoVersion:"go1.24.6"}

Kubernetes version

Details

There is no kubectl in the Alpine Docker image I'm using.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions