8e5b17cf13
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
44 lines
876 B
JSON
44 lines
876 B
JSON
{
|
|
"kind": "ReplicationController",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "nettest-controller",
|
|
"labels": {
|
|
"name": "nettest"
|
|
}
|
|
},
|
|
"spec": {
|
|
"replicas": 2,
|
|
"selector": {
|
|
"name": "nettest"
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"labels": {
|
|
"name": "nettest"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"name": "webserver",
|
|
"image": "gcr.io/google_containers/nettest:1.8",
|
|
"imagePullPolicy": "Always",
|
|
"args": [
|
|
"-service=nettest",
|
|
"-port=8080",
|
|
"-namespace=default",
|
|
"-peers=2"
|
|
],
|
|
"ports": [
|
|
{
|
|
"containerPort": 8080,
|
|
"protocol": "TCP"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|