Skip to content

Instantly share code, notes, and snippets.

@goldmann
Forked from luksa/openshift-wildfly-config.json
Last active August 29, 2015 14:13
Show Gist options
  • Save goldmann/ea922ee1566c456967b6 to your computer and use it in GitHub Desktop.
Save goldmann/ea922ee1566c456967b6 to your computer and use it in GitHub Desktop.
{
"kind": "Config",
"id": "wildfly-config",
"apiVersion": "v1beta1",
"name": "JBoss WildFly",
"description": "Creates a JBoss WildFly cluster",
"items": [
{
"kind": "Service",
"id": "lb-http-service",
"apiVersion": "v1beta1",
"port": 90,
"containerPort": 80,
"selector": {
"name": "lbPod"
}
},
{
"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": "wildfly-controller",
"apiVersion": "v1beta1",
"labels": {
"name": "wildfly-controller"
},
"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"
}
}
}
},
{
"kind": "ReplicationController",
"id": "lb-controller",
"apiVersion": "v1beta1",
"labels": {
"name": "lb-controller"
},
"desiredState": {
"replicas": 1,
"replicaSelector": {
"name": "lbPod"
},
"podTemplate": {
"desiredState": {
"manifest": {
"id": "lbPod",
"version": "v1beta1",
"containers": [
{
"image": "goldmann/mod_cluster",
"name": "lb-container"
}
],
"volumes": null
}
},
"labels": {
"name": "lbPod"
}
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment