Puppet Kubernetes Can I use already existing kubrernetes YAML files while using the kubernetes module

0 votes
I already have YAML files describing my Kubernetes resources, Is there any way that I can reuse it while using puppetlabs/kubernetes module?

Should I re-write all those as per the constraints of the puppetlabs/kubernetes  module? What's the way forward?
Aug 22, 2019 in Puppet by Karan
• 19,610 points
818 views

1 answer to this question.

0 votes

Yes, you could re-use them.

You may already have YAML files describing your Kubernetes resources,In this case the module includes an experimental puppet kubernetes convert command for just this situation.

puppet kubernetes convert examples/guestbook.yaml

The above command will output to stdout the Puppet equivalent to the YAML description of Kubernetes resources, including correctly handling multi-document files like the example guestbook.

puppet kubernetes convert examples/guestbook.yaml > guestbook.pp
puppet apply --test guestbook.pp

If you want to then use that Puppet file the simplest way to do so is to redirect the output to a file and then run it with Puppet as shown above.

Ready to master Kubernetes and take your container orchestration skills to the next level? Join our comprehensive Kubernetes Training today!

answered Aug 22, 2019 by Sirajul
• 59,230 points

Related Questions In Puppet

0 votes
1 answer
0 votes
1 answer

Puppet+Kubernetes : How do i install the kubernetes module via Bolt?

In order to get started with using ...READ MORE

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

How do i start using the kubernetes module if i'm using r10k for code management?

Add this declaration to your Puppetfile: mod 'puppetlabs-kubernetes', ...READ MORE

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

Can I launch a Puppet Server using the puppet/puppetserver-standalone docker image?

In order to launch a Puppet Server ...READ MORE

answered Aug 23, 2019 in Puppet by Sirajul
• 59,230 points
1,220 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,488 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,041 views
0 votes
1 answer

Docker with puppet: Can I validate the puppetlabs/docker module?

Yes, you can! This module is compliant with ...READ MORE

answered Aug 16, 2019 in Puppet by Sirajul
• 59,230 points
804 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,182 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