WoozyMasta / kube-dump

Backup a Kubernetes cluster as a yaml manifest
https://kube-dump.woozymasta.ru
GNU General Public License v3.0
325 stars 67 forks source link

Parameter --kube-insecure-tls doesn't work #15

Closed kgeipel-retail7 closed 3 years ago

kgeipel-retail7 commented 3 years ago

Hey, we're running an RKE cluster with a self-signed cert which causes the issue: Unable to connect to the server: x509: certificate signed by unknown authority

But even if I specify the parameter --kube-insecure-tls the error appears. On kubectl the parameter --insecure-skip-tls-verify prevents that error.

Used kubectl version: v1.18.2 Used kube-dump version: v1.0.4

kgeipel-retail7 commented 3 years ago

Found the issue by my own, you define in line 229 that if --kube-insecure-tls is true you will set --insecure-skip-tls-verify to false. https://github.com/WoozyMasta/kube-dump/blob/master/kube-dump#L229