Skip to content

Commit

Permalink
Merge pull request kubernetes#6071 from lavalamp/fix2
Browse files Browse the repository at this point in the history
Update network tester files to v1beta3
  • Loading branch information
satnam6502 committed Mar 27, 2015
2 parents a2801a5 + a060c54 commit 3768903
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 31 deletions.
55 changes: 33 additions & 22 deletions contrib/for-tests/network-tester/rc.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,40 @@
{
"id": "nettestController",
"kind": "ReplicationController",
"apiVersion": "v1beta1",
"desiredState": {
"apiVersion": "v1beta3",
"metadata": {
"name": "nettest-controller",
"labels": {
"name": "nettest"
}
},
"spec": {
"replicas": 8,
"replicaSelector": {"name": "nettest"},
"podTemplate": {
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "nettest",
"containers": [{
"selector": {
"name": "nettest"
},
"template": {
"metadata": {
"labels": {
"name": "nettest"
}
},
"spec": {
"containers": [
{
"name": "webserver",
"image": "kubernetes/nettest:latest",
"command": ["-service=nettest"],
"ports": [{
"containerPort": 8080
}]
}]
}
},
"labels": {
"name": "nettest"
}
"command": [
"-service=nettest"
],
"ports": [
{
"containerPort": 8080,
"protocol": "TCP"
}
]
}
]
}
},
"labels": {"name": "nettest"}
}
}
}
22 changes: 13 additions & 9 deletions contrib/for-tests/network-tester/service.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
{
"id": "nettest",
"kind": "Service",
"apiVersion": "v1beta1",
"port": 8080,
"containerPort": 8080,
"selector": {
"name": "nettest"
"apiVersion": "v1beta3",
"metadata": {
"name": "nettest",
"labels": {
"name": "nettest"
}
},
"labels": {
"name": "nettest"
"spec": {
"port": 8080,
"protocol": "TCP",
"selector": {
"name": "nettest"
},
"targetPort": 8080,
}
}

0 comments on commit 3768903

Please sign in to comment.