You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With a K8S cluster working, I launch the following PERL:
my $kube = Net::Kubernetes->new(url=>'http://127.0.0.1:8080');
my $resource = $kube->create_from_file('/etc/kubernetes/deployments/skydns-dply.yaml');
And I obtain this Exception stack:
Error creating resource: the server could not find the requested resource
Trace begun at /usr/local/share/perl/5.22.1/Net/Kubernetes/Role/ResourceCreator.pm line 68
Net::Kubernetes::Role::ResourceCreator::create('Net::Kubernetes::Namespace=HASH(0x31e7158)', 'HASH(0x32ef728)') called at /usr/local/share/perl/5.22.1/Net/Kubernetes/Role/ResourceCreator.pm line 37
Net::Kubernetes::Role::ResourceCreator::create_from_file('Net::Kubernetes::Namespace=HASH(0x31e7158)', '/etc/kubernetes/deployments/skydns-dply.yaml') called at inline delegation in Net::Kubernetes for default_namespace->create_from_file (attribute declared in /usr/local/share/perl/5.22.1/Net/Kubernetes.pm at line 19) line 18
Net::Kubernetes::create_from_file('Net::Kubernetes=HASH(0x3220a80)', '/etc/kubernetes/deployments/skydns-dply.yaml') called at setup.pl line 1044
eval {...} at setup.pl line 1043
On the other hand, if I deploy the same YAML from KUBECTL, everything works fine:
# kubectl create -f /etc/kubernetes/deployments/skydns-dply.yaml
deployment "kube-dns" created
The text was updated successfully, but these errors were encountered:
Hello,
I am working with:
With a K8S cluster working, I launch the following PERL:
And I obtain this Exception stack:
On the other hand, if I deploy the same YAML from KUBECTL, everything works fine:
The text was updated successfully, but these errors were encountered: