[strom] fix broken links and update rc to deployment

Signed-off-by: LinWengang <linwengang@chinacloud.com.cn>
This commit is contained in:
LinWengang 2018-02-08 10:48:51 +08:00
parent 56d77eddf8
commit fe6c23733c
3 changed files with 42 additions and 60 deletions

View File

@ -22,7 +22,7 @@ Source is freely available at:
This example assumes you have a Kubernetes cluster installed and
running, and that you have installed the ```kubectl``` command line
tool somewhere in your path. Please see the [getting
started](https://kubernetes.io/docs/setup/) for installation
started](https://kubernetes.io/docs/user-journeys/users/application-developer/foundational/#section-1) for installation
instructions for your platform.
## Step One: Start your ZooKeeper service
@ -113,11 +113,11 @@ the Nimbus service.
The Storm workers need both the ZooKeeper and Nimbus services to be
running.
Use the [`examples/storm/storm-worker-controller.json`](storm-worker-controller.json) file to create a
[replication controller](https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/) that manages the worker pods.
Use the [`examples/storm/storm-worker-controller.yaml`](storm-worker-controller.yaml) file to create a
[deployment](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/) that manages the worker pods.
```sh
$ kubectl create -f examples/storm/storm-worker-controller.json
$ kubectl create -f examples/storm/storm-worker-controller.yaml
```
### Check to see if the workers are running
@ -164,7 +164,7 @@ Make sure the ZooKeeper Pod is running (use: ```kubectl get pods```).
Make sure the Nimbus Pod is running.
```kubectl create -f storm-worker-controller.json```
```kubectl create -f storm-worker-controller.yaml```
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->

View File

@ -1,55 +0,0 @@
{
"kind": "ReplicationController",
"apiVersion": "v1",
"metadata": {
"name": "storm-worker-controller",
"labels": {
"name": "storm-worker"
}
},
"spec": {
"replicas": 2,
"selector": {
"name": "storm-worker"
},
"template": {
"metadata": {
"labels": {
"name": "storm-worker",
"uses": "nimbus"
}
},
"spec": {
"containers": [
{
"name": "storm-worker",
"image": "mattf/storm-worker",
"ports": [
{
"hostPort": 6700,
"containerPort": 6700
},
{
"hostPort": 6701,
"containerPort": 6701
},
{
"hostPort": 6702,
"containerPort": 6702
},
{
"hostPort": 6703,
"containerPort": 6703
}
],
"resources": {
"limits": {
"cpu": "200m"
}
}
}
]
}
}
}
}

View File

@ -0,0 +1,37 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: storm-worker-controller
labels:
name: storm-worker
spec:
replicas: 2
selector:
matchLabels:
name: storm-worker
uses: nimbus
template:
metadata:
labels:
name: storm-worker
uses: nimbus
spec:
containers:
- name: storm-worke
image: mattf/storm-worker
resources:
limits:
cpu: 200m
memory: 500Mi
requests:
cpu: 100m
memory: 100Mi
ports:
- hostPort: 6700
containerPort: 6700
- hostPort: 6701
containerPort: 6701
- hostPort: 6702
containerPort: 6702
- hostPort: 6703
containerPort: 6703