Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Installing helm chart to cluster with self-signed cert fails tls: failed to verify certificate: x509: “kubernetes” certificate is not trusted #959

@adietish

Description

@adietish

Steps:

  1. ASSERT: have a cluster that is using a self-signed certificate
  2. EXEC: try to install a helm chart

Result:
Installation fails with

Process exited with an error: 1 (Exit value: 1) WARNING: This chart is deprecated
Error: INSTALLATION FAILED: Kubernetes cluster unreachable: Get "https://a03ac51f3a3e54287a3a342aae2694fa-29636b249daba727.elb.us-east-1.amazonaws.com:6443/version": tls: failed to verify certificate: x509: “kubernetes” certificate is not trusted
Image

WORKAROUND: change kube config to insecure-skip-tls-verify: true

   clusters:
   - name: insecure-cluster
     cluster:
       server: https://api.example.com:6443  # Replace with your cluster endpoint
==>    insecure-skip-tls-verify: true  # Disables TLS certificate validation

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions