Created
June 5, 2015 20:58
-
-
Save mwringe/5abe6b5ec95bd093a7eb to your computer and use it in GitHub Desktop.
Kubernetes Test with Command versu Docker CMD
This file contains 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
{ | |
"id": "foobar", | |
"kind": "List", | |
"apiVersion": "v1beta3", | |
"name": "foobar", | |
"items": [ | |
{ | |
"apiVersion" : "v1beta3", | |
"kind": "Service", | |
"metadata" : { | |
"name": "foo", | |
"labels": { | |
"name": "foo" | |
} | |
}, | |
"spec" : { | |
"selector" : { | |
"name": "foo" | |
}, | |
"ports": [ | |
{ "name": "http-port", "port": 8080, "targetPort": "http-port" } | |
] | |
} | |
}, | |
{ | |
"apiVersion": "v1beta3", | |
"kind": "ReplicationController", | |
"metadata": { | |
"name": "foo", | |
"labels" : { | |
"name": "foo" | |
} | |
}, | |
"spec": { | |
"selector" : { | |
"name": "foo" | |
}, | |
"replicas": 1, | |
"template": { | |
"version": "v1beta3", | |
"metadata": { | |
"labels" : { | |
"name": "foo" | |
} | |
}, | |
"spec": { | |
"containers": [{ | |
"image": "jboss/wildfly:8.2.0.Final", | |
"name" : "foo", | |
"ports": [ | |
{ "name": "http-port", "containerPort": 8080 } | |
], | |
"command" : ["/opt/jboss/wildfly/bin/standalone.sh", | |
"-b 0.0.0.0", | |
"-bmanagement 0.0.0.0"] | |
}] | |
} | |
} | |
} | |
}, | |
{ | |
"apiVersion" : "v1beta3", | |
"kind": "Service", | |
"metadata" : { | |
"name": "bar", | |
"labels": { | |
"name": "bar" | |
} | |
}, | |
"spec" : { | |
"selector" : { | |
"name": "bar" | |
}, | |
"ports": [ | |
{ "name": "http-port", "port": 8080, "targetPort": "http-port" } | |
] | |
} | |
}, | |
{ | |
"apiVersion": "v1beta3", | |
"kind": "ReplicationController", | |
"metadata": { | |
"name": "bar", | |
"labels" : { | |
"name": "bar" | |
} | |
}, | |
"spec": { | |
"selector" : { | |
"name": "bar" | |
}, | |
"replicas": 1, | |
"template": { | |
"version": "v1beta3", | |
"metadata": { | |
"labels" : { | |
"name": "bar" | |
} | |
}, | |
"spec": { | |
"containers": [{ | |
"image": "jboss/wildfly:8.2.0.Final", | |
"name" : "bar", | |
"ports": [ | |
{ "name": "http-port", "containerPort": 8080 } | |
] | |
}] | |
} | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment