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 in Puppet by Jane
27 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 by Sirajul
• 29,340 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 in Puppet by Sirajul
• 29,340 points
31 views
0 votes
1 answer
0 votes
1 answer
0 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
1,020 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 in Puppet by Sirajul
• 29,340 points
32 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 in Puppet by Sirajul
• 29,340 points
20 views