Last active
August 29, 2015 14:12
-
-
Save luksa/09c5bf96c3e55356c6ca to your computer and use it in GitHub Desktop.
An OpenShift V3 Application Config for deploying two replicas of WildFly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"kind": "Config", | |
"id": "wildfly-config", | |
"apiVersion": "v1beta1", | |
"name": "JBoss WildFly", | |
"description": "Creates a JBoss WildFly cluster", | |
"items": [ | |
{ | |
"kind": "Service", | |
"id": "wildfly-http-service", | |
"apiVersion": "v1beta1", | |
"port": 80, | |
"containerPort": 8080, | |
"selector": { | |
"name": "wildflyPod" | |
} | |
}, | |
{ | |
"kind": "Service", | |
"id": "wildfly-https-service", | |
"apiVersion": "v1beta1", | |
"port": 443, | |
"containerPort": 8443, | |
"selector": { | |
"name": "wildflyPod" | |
} | |
}, | |
{ | |
"kind": "ReplicationController", | |
"id": "wildflyController", | |
"apiVersion": "v1beta1", | |
"labels": { | |
"name": "wildflyController" | |
}, | |
"desiredState": { | |
"replicas": 2, | |
"replicaSelector": { | |
"name": "wildflyPod" | |
}, | |
"podTemplate": { | |
"desiredState": { | |
"manifest": { | |
"id": "wildflyPod", | |
"version": "v1beta1", | |
"containers": [ | |
{ | |
"image": "luksa/wildflycluster", | |
"name": "wildfly-container", | |
"env": [ | |
{ | |
"name": "FOO", | |
"value": "BAR" | |
} | |
], | |
"ports": [ | |
{ | |
"hostPort": 9888, | |
"containerPort": 8080 | |
}, | |
{ | |
"hostPort": 9443, | |
"containerPort": 8443 | |
} | |
] | |
} | |
], | |
"volumes": null | |
} | |
}, | |
"labels": { | |
"name": "wildflyPod" | |
} | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment