Puppet+Kubernetes: How do I convert puppet code to kubernetes yaml format?

0 votes
I am actually experimenting with the kubernetes module of puppetlabs.

While trying to integrate kubernetes tools with puppet i have a need that i convert PuppetDSL into kubernetes Yaml format to achieve a consistency.

How do I convert puppet code to kubernetes yaml format?
Aug 22 in Puppet by Tina
14 views

1 answer to this question.

0 votes

Sometimes you may want to convert PuppetDSL into Kubernetes Yaml format. 

For this we have the compile subcommand.

puppet kubernetes compile --manifest examples/guestbook.pp

The above will output YAML to stdout which could them be used with kubectl or similar tooling.

answered Aug 22 by Sirajul
• 26,100 points

Related Questions In Puppet

0 votes
1 answer

Puppet+Docker: How do i configure my docker container to use a NFS volume through a Hiera config file?

If using Hiera, configure the docker::volumes class in the ...READ MORE

answered Aug 14 in Puppet by Sirajul
• 26,100 points
20 views
0 votes
1 answer

Docker with Puppet: How do i run the following command "docker build -t ubuntu /tmp/ubuntu_image" using puppet code?

 Hey @Liana, Including the docker_dir parameter is equivalent to ...READ MORE

answered Aug 16 in Puppet by Sirajul
• 26,100 points
21 views
0 votes
1 answer
0 votes
1 answer
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
2,181 views
+3 votes
1 answer
0 votes
1 answer
0 votes
1 answer