You can provide the required information in a standard kubectl configuration file.
Store this as kubernetes.conf in the relevant confdir. This should be:
-
nix Systems: /etc/puppetlabs/puppet
-
Windows: C:\ProgramData\PuppetLabs\puppet\etc
-
non-root users: ~/.puppetlabs/etc/puppet
If you have a working kubectl setup you can export the file using the following command:
kubectl config view --raw=true
Finally install the module with:
puppet module install garethr-kubernetes