<p>I installed the puppet kubernetes module to manage pods of my kubernetes cluster with <a href="https://github.com/garethr/garethr-kubernetes/blob/master/README.md" rel="nofollow noreferrer">https://github.com/garethr/garethr-kubernetes/blob/master/README.md</a></p>

<p>I am not able to get any pod information back when I run</p>

<p>puppet resource kubernetes_pod</p>

<p>It just returns an empty line.</p>

<p>I am using a minikube k8s cluster to test the puppet module against.</p>

<p><code>cat /etc/puppetlabs/puppet/kubernetes.conf</code></p>

<p><code>apiVersion: v1
clusters:
- cluster:
    certificate-authority: /root/.minikube/ca.crt
    server: https://&lt;ip address&gt;:8443
  name: minikube
contexts:
- context:
    cluster: minikube
    user: minikube
  name: minikube
current-context: minikube
kind: Config
preferences: {}
users:
- name: minikube
  user:
    client-certificate: /root/.minikube/apiserver.crt
    client-key: /root/.minikube/apiserver.key</code></p>

<p>I am able to use curl with the certs to talk to the K8s REST API</p>

<p><code>curl --cacert /root/.minikube/ca.crt --cert /root/.minikube/apiserver.crt --key /root/.minikube/apiserver.key https://&lt;minikube ip&gt;:844/api/v1/pods/
</code></p>

<p>It looks like the <a href="https://github.com/garethr/garethr-kubernetes/" rel="nofollow noreferrer">garethr-kubernetes</a> package hasn't been updated since August 2017, so you probably need a version of the <a href="https://rubygems.org/gems/kubeclient" rel="nofollow noreferrer">kubeclient gem</a> at least that old. It seems kubeclient 3.0 came out quite recently, so you might want to try the latest version from the 2.5 major (currently 2.5.2).</p>
