I am using kubernetes with puppet with the help of puppet kubernetes module to manage pods of my kubernetes cluster as explained in this : https://github.com/garethr/garethr-kubernetes/blob/master/README.md
on executing the following command:
puppet resource kubernetes_pod
It doesn't return any pod information, instead it returns an empty line.
I am using a minikube k8s cluster to test the puppet module against : cat /etc/puppetlabs/puppet/kubernetes.conf
apiVersion: v1 clusters: - cluster: certificate-authority: /root/.minikube/ca.crt server: https://<ip address>: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
Communication with K8s REST API is successful on using curl command with the certs.
curl --cacert /root/.minikube/ca.crt --cert /root/.minikube/apiserver.crt --key /root/.minikube/apiserver.key https://<minikube ip>:844/api/v1/pods/