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

0 votes
Is it possible to launch a puppet server from a puppet/puppetserver-standalone docker image? How should i go about doing this?
Aug 23, 2019 in Puppet by Jane
1,220 views

1 answer to this question.

0 votes

In order to launch a Puppet Server using the puppet/puppetserver-standalone image we'll need a Kubernetes Service and a Deployment. We could generate the required configurations from a Docker Compose file. 

For this we'll use Kompose. With Kompose installed we simply need to run the following command to launch our Puppet Server.

kompose up

If you'd like to see the generated Kubernetes configuration files you can run the following command:

kompose convert

This should generate a puppet-service.json file along with a puppet-deployment.json file in the local directory.

We're going to test out our Puppet Server from our local machine so we'll need to expose it externally outside our cluster.

kubectl expose service puppet --port=8140 --target-port=8140 --name=puppet-external --type=LoadBalancer

We can watch the new service launch and then add an external load balancer. 

kubectl get service puppet-external --watch
NAME              CLUSTER-IP       EXTERNAL-IP   PORT(S)    AGE
puppet-external   10.107.245.142   <pending>     8140/TCP   40s
...
puppet-external   10.107.245.142   123.456.78.91   8140/TCP   54s
answered Aug 23, 2019 by Sirajul
• 59,230 points

Related Questions In Puppet

0 votes
1 answer
0 votes
1 answer

Puppet: How can i connect the puppet server to an external node classifier?

You need to configure two settings to ...READ MORE

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

Puppet: Can i automatically generate puppet manifests from a puppet server?

Yes, here is how you can do ...READ MORE

answered Aug 7, 2019 in Puppet by Sirajul
• 59,230 points
725 views
+2 votes
1 answer
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
3,932 views
0 votes
1 answer

Puppet : Can i install jenkins on a puppet server using Git?

Installing puppet-jenkins is easy. To install via Git, ...READ MORE

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

Puppet+Docker: How do i configure a swarm if i am using windows server 2016.

There are a few considerations to be ...READ MORE

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