Skip to content

Commit fa15415

Browse files
author
yi.wu
committed
update ui pass nimbus host
1 parent fa2d812 commit fa15415

File tree

3 files changed

+60
-1
lines changed

3 files changed

+60
-1
lines changed

kubernetes/storm-ui-service.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"kind": "Service",
3+
"apiVersion": "v1",
4+
"metadata": {
5+
"name": "storm-ui",
6+
"labels": {
7+
"name": "storm-ui"
8+
}
9+
},
10+
"spec": {
11+
"type": "NodePort",
12+
"ports": [
13+
{
14+
"port": 8080,
15+
"nodePort": 30004
16+
}
17+
],
18+
"selector": {
19+
"name": "storm-ui"
20+
}
21+
}
22+
}

kubernetes/storm-ui.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"kind": "Pod",
3+
"apiVersion": "v1",
4+
"metadata": {
5+
"name": "storm-ui",
6+
"labels": {
7+
"name": "storm-ui"
8+
}
9+
},
10+
"spec": {
11+
"containers": [
12+
{
13+
"name": "storm-ui",
14+
"image": "typhoon1986/storm-ui",
15+
"command": ["/start.sh", "--storm.zookeeper.servers", "172.24.2.35,172.24.2.36,172.24.2.37",
16+
"--storm.zookeeper.port", "2181",
17+
"--storm.zookeeper.root", "/k8s_storm"],
18+
"ports": [
19+
{
20+
"containerPort": 8080
21+
}
22+
],
23+
"resources": {
24+
"limits": {
25+
"cpu": "100m"
26+
}
27+
}
28+
}
29+
]
30+
}
31+
}

ui/start.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/bin/sh
2+
if [ ! -z $NIMBUS_SERVICE_HOST ]; then
3+
echo "found nimbus service: $NIMBUS_SERVICE_HOST"
4+
else
5+
echo "no nimbus host found in service env"
6+
exit 1
7+
fi
28

3-
/storm-nimbus-daemon $@
9+
/storm-nimbus-daemon $@ --nimbus.host $NIMBUS_SERVICE_HOST
410

511
exec bin/storm ui

0 commit comments

Comments
 (0)