Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
where the values for url and those ssl params. come from the Kubernetes server's "$HOME/.kube/config" file. Since I couldn't find any Perl example on the net to show usage of this library, I just want to check with you to see if I use this new() method correctly, or whether I need to supply any extra params/options into the new() method? Any insight is greatly appreciated. The error says:my $kube = Net::Kubernetes->new( url => 'https://myK8Scluster:8443', username => 'kubernetes-admin', ssl_ca_file => '/src/ssl_ca_file.txt', ssl_cert_file => '/src/ssl_cert_file.txt', ssl_key_file => '/src/ssl_key_file.txt' );
Can't connect to myK8Scluster:8443 Trace begun at /opt/ActivePerl-5.28/lib/perl5/site_perl/5.28.1/Net/Kub +ernetes/Role/ResourceLister.pm line 42
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl's Net:Kubernetes question
by syphilis (Archbishop) on Nov 13, 2019 at 02:56 UTC | |
by Anonymous Monk on Nov 13, 2019 at 14:48 UTC | |
by hippo (Archbishop) on Nov 13, 2019 at 15:50 UTC | |
by Fletch (Bishop) on Nov 13, 2019 at 16:58 UTC | |
by hippo (Archbishop) on Nov 13, 2019 at 23:11 UTC | |
by Anonymous Monk on Nov 13, 2019 at 17:13 UTC | |
by Anonymous Monk on Nov 13, 2019 at 17:07 UTC |