Puppet+Kubernetes : List and manage kubernetes resources in puppet

0 votes
I am using puppetlabs kubernetes module to mange my kubernetes cluster using puppet. How do I list the kubernetes resources and probably delete a few of them?
Aug 22 in Puppet by Liana
21 views

1 answer to this question.

0 votes

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
answered Aug 22 by Sirajul
• 40,980 points

Related Questions In Puppet

0 votes
1 answer
0 votes
1 answer

What is PSON in puppet and how is it different from JSON?

PSON is a variant of JSON which ...READ MORE

answered Jul 24 in Puppet by Sirajul
• 40,980 points
550 views
0 votes
1 answer

what are Resources in puppet?

Resources are the fundamental unit for modeling ...READ MORE

answered Jul 24 in Puppet by Sirajul
• 40,980 points
29 views
0 votes
1 answer

What is Hiera in puppet and what does it do?

Hiera is a built-in key-value configuration data lookup ...READ MORE

answered Jul 25 in Puppet by Sirajul
• 40,980 points
254 views
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17 in Others by anonymous
3,372 views
+3 votes
1 answer
0 votes
1 answer
0 votes
1 answer