Merge pull request #191 from Davidchinacloud/dev

[storm] fix broken and outdated links in readme
This commit is contained in:
sebgoa 2018-02-08 17:55:54 +01:00 committed by GitHub
commit a9514d789c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 44 additions and 62 deletions

View File

@ -22,15 +22,15 @@ 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](../../docs/getting-started-guides/) 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
ZooKeeper is a distributed coordination [service](../../docs/user-guide/services.md) that Storm uses as a
ZooKeeper is a distributed coordination [service](https://kubernetes.io/docs/concepts/services-networking/service/) that Storm uses as a
bootstrap and for state storage.
Use the [`examples/storm/zookeeper.json`](zookeeper.json) file to create a [pod](../../docs/user-guide/pods.md) running
Use the [`examples/storm/zookeeper.json`](zookeeper.json) file to create a [pod](https://kubernetes.io/docs/concepts/workloads/pods/pod/) running
the ZooKeeper service.
```sh
@ -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](../../docs/user-guide/replication-controller.md) 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 # for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1
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