List resources:
In addition to creating and managing resources this module supports listing and interactive management of resources via puppet resource.
For example:
puppet resource kubernetes_node
Or
puppet resource kubernetes_service
You can use this to describe the state of your Kubernetes cluster and export the results to a file, which can then be used to maintain that state over time.
Delete resources:
You can also delete the resources we created above by setting the ensure property to absent in the manifest or using puppet resource like so:
puppet resource kubernetes_pod sample-pod ensure=absent