mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Merge pull request #5986 from jayunit100/k8petstore-json2
Cleanup of k8petstore json formatting flaw, and parameterization of kube...
This commit is contained in:
commit
16f463f2cc
@ -1,5 +1,8 @@
|
|||||||
echo "WRITING KUBE FILES , will overwrite the jsons, then testing pods. is kube clean ready to go?"
|
echo "WRITING KUBE FILES , will overwrite the jsons, then testing pods. is kube clean ready to go?"
|
||||||
|
|
||||||
|
#for dev/test you can use:
|
||||||
|
#kubectl=$GOPATH/src/github.com/GoogleCloudPlatform/kubernetes/cluster/kubectl.sh"
|
||||||
|
kubectl="kubectl"
|
||||||
VERSION="r.2.8.19"
|
VERSION="r.2.8.19"
|
||||||
PUBLIC_IP="127.0.0.1" # ip which we use to access the Web server.
|
PUBLIC_IP="127.0.0.1" # ip which we use to access the Web server.
|
||||||
SECONDS=1000 # number of seconds to measure throughput.
|
SECONDS=1000 # number of seconds to measure throughput.
|
||||||
@ -24,8 +27,8 @@ cat << EOF > fe-rc.json
|
|||||||
"id": "frontendCcontroller",
|
"id": "frontendCcontroller",
|
||||||
"containers": [{
|
"containers": [{
|
||||||
"name": "frontend-go-restapi",
|
"name": "frontend-go-restapi",
|
||||||
"image": "jayunit100/k8-petstore-web-server:$VERSION",
|
"image": "jayunit100/k8-petstore-web-server:$VERSION"
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
@ -169,15 +172,15 @@ cat << EOF > slave-rc.json
|
|||||||
"labels": {"name": "redisslave"}
|
"labels": {"name": "redisslave"}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
kubectl create -f rm.json --api-version=v1beta1
|
$kubectl create -f rm.json --api-version=v1beta1
|
||||||
kubectl create -f rm-s.json --api-version=v1beta1
|
$kubectl create -f rm-s.json --api-version=v1beta1
|
||||||
sleep 3 # precaution to prevent fe from spinning up too soon.
|
sleep 3 # precaution to prevent fe from spinning up too soon.
|
||||||
kubectl create -f slave-rc.json --api-version=v1beta1
|
$kubectl create -f slave-rc.json --api-version=v1beta1
|
||||||
kubectl create -f rs-s.json --api-version=v1beta1
|
$kubectl create -f rs-s.json --api-version=v1beta1
|
||||||
sleep 3 # see above comment.
|
sleep 3 # see above comment.
|
||||||
kubectl create -f fe-rc.json --api-version=v1beta1
|
$kubectl create -f fe-rc.json --api-version=v1beta1
|
||||||
kubectl create -f fe-s.json --api-version=v1beta1
|
$kubectl create -f fe-s.json --api-version=v1beta1
|
||||||
kubectl create -f bps-load-gen-rc.json --api-version=v1beta1
|
$kubectl create -f bps-load-gen-rc.json --api-version=v1beta1
|
||||||
}
|
}
|
||||||
|
|
||||||
function test {
|
function test {
|
||||||
|
Loading…
Reference in New Issue
Block a user