[strom] fix broken links and update rc to deployment
Signed-off-by: LinWengang <linwengang@chinacloud.com.cn>
This commit is contained in:
parent
56d77eddf8
commit
fe6c23733c
|
@ -22,7 +22,7 @@ Source is freely available at:
|
||||||
This example assumes you have a Kubernetes cluster installed and
|
This example assumes you have a Kubernetes cluster installed and
|
||||||
running, and that you have installed the ```kubectl``` command line
|
running, and that you have installed the ```kubectl``` command line
|
||||||
tool somewhere in your path. Please see the [getting
|
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.
|
instructions for your platform.
|
||||||
|
|
||||||
## Step One: Start your ZooKeeper service
|
## 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
|
The Storm workers need both the ZooKeeper and Nimbus services to be
|
||||||
running.
|
running.
|
||||||
|
|
||||||
Use the [`examples/storm/storm-worker-controller.json`](storm-worker-controller.json) file to create a
|
Use the [`examples/storm/storm-worker-controller.yaml`](storm-worker-controller.yaml) file to create a
|
||||||
[replication controller](https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/) that manages the worker pods.
|
[deployment](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/) that manages the worker pods.
|
||||||
|
|
||||||
```sh
|
```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
|
### 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.
|
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 -->
|
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
||||||
|
|
|
@ -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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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
|
Loading…
Reference in New Issue