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, 2019 in Puppet by Liana
637 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, 2019 by Sirajul
• 59,230 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, 2019 in Puppet by Sirajul
• 59,230 points
2,183 views
0 votes
1 answer

what are Resources in puppet?

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

answered Jul 24, 2019 in Puppet by Sirajul
• 59,230 points
678 views
0 votes
1 answer

What is Hiera in puppet and what does it do?

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

answered Jul 25, 2019 in Puppet by Sirajul
• 59,230 points
4,857 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

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

answered Jan 17, 2019 in Others by anonymous
15,471 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,032 views
0 votes
1 answer

Puppet+Kubernetes: How do I use kubetool and what is it's significance in using kubernetes with puppet?

The module puppetlabs/kubernetes has Kubetool, which is ...READ MORE

answered Aug 21, 2019 in Puppet by Sirajul
• 59,230 points
1,173 views
0 votes
1 answer

Puppet+Kubernetes: Is there a way to create resources in Kubernetes using Puppet?

Yes, it is quite possible to create ...READ MORE

answered Aug 23, 2019 in Puppet by Sirajul
• 59,230 points
977 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP