intellij-openshift-connector icon indicating copy to clipboard operation
intellij-openshift-connector copied to clipboard

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

Open adietish opened this issue 10 months ago • 0 comments

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

adietish avatar Jan 27 '25 21:01 adietish