Kubernetes-REST
view release on metacpan or search on metacpan
lib/Kubernetes/REST/Example.pm view on Meta::CPAN
# Install
curl -sfL https://get.k3s.io | sh -
# K3s writes its own kubeconfig to a different path
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
# Or copy it so Kubernetes::REST::Kubeconfig finds it automatically
mkdir -p ~/.kube
sudo cp /etc/rancher/k3s/k3s.yaml ~/.kube/config
sudo chown $USER ~/.kube/config
chmod 600 ~/.kube/config
# Verify
kubectl get nodes
B<Key differences from Minikube:>
=over 4
=item * Kubeconfig lives at C</etc/rancher/k3s/k3s.yaml> (not C<~/.kube/config>)
( run in 2.183 seconds using v1.01-cache-2.11-cpan-71847e10f99 )