Sanket Gupta
Sanket Gupta

Reputation: 75

How do I create a single openshift template to create multiple pods (different apps)?

My application is based on 2 openshift images. I want to create a single template for them to start 2 pod (1 pod for each image). I know that we can have multiple container in single pod but we need to create separate pods for each image.

Upvotes: 0

Views: 1201

Answers (1)

Graham Dumpleton
Graham Dumpleton

Reputation: 58563

You need to have multiple DeploymentConfig resource objects defined in the template, along with corresponding Service definitions and if necessary a Route. For a more complex example involving deploying multiple applications in one go, see:

Upvotes: 1

Related Questions