Skip to content

Commit 0d11e61

Browse files
committed
apache#8283 Add how to submit job.
1 parent ba3e4a8 commit 0d11e61

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

deploy/kubernetes/seatunnel/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ conf:
248248
ingress:
249249
enabled: false
250250
host: "seatunnel.org"
251-
path: "/seatunnel"
251+
path: "/"
252252
annotations: {}
253253
tls:
254254
enabled: false

docs/en/start-v2/kubernetes/helm.md

+22
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,28 @@ seatunnel.<your namespace >.svc.cluster.local
4848
helm install seatunnel . -n <your namespace>
4949
```
5050

51+
## Submit Job
52+
53+
The default config doesn't enable ingress, so you need forward the master restapi.
54+
```bash
55+
kubectl port-forward -n default svc/seatunnel-master 5801:5801
56+
```
57+
Then you can access restapi with "http://127.0.0.1/5801/"
58+
59+
If you want to use ingress, update `value.yaml`
60+
61+
for example:
62+
```commandline
63+
ingress:
64+
enabled: true
65+
host: "<your domain>"
66+
```
67+
Then upgrade seatunnel.
68+
69+
Then you can access restapi with `http://<your domain>`
70+
71+
After that you can submit your job by [rest-api](../../seatunnel-engine/rest-api-v2.md)
72+
5173
## What's More
5274

5375
For now, you have taken a quick look at SeaTunnel, and you can see [connector](../../connector-v2) to find all sources and sinks SeaTunnel supported.

docs/zh/start-v2/kubernetes/helm.md

+22
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,28 @@ seatunnel.<your namespace >.svc.cluster.local
4848
helm install seatunnel . -n <your namespace>
4949
```
5050

51+
## 提交任务
52+
53+
当前默认的配置没有启用ingress,所以需要使用转发命令将master的restapi端口转发出来。
54+
```bash
55+
kubectl port-forward -n default svc/seatunnel-master 5801:5801
56+
```
57+
然后可以通过地址 "http://127.0.0.1/5801/" 访问master的restapi。
58+
59+
如果想要使用ingress, 需要更新 `value.yaml`
60+
61+
例如:
62+
```commandline
63+
ingress:
64+
enabled: true
65+
host: "<your domain>"
66+
```
67+
然后更新seatunnel。
68+
69+
就可以使用域名`http://<your domain>`进行访问了。
70+
71+
后面就可以使用[rest-api](../../seatunnel-engine/rest-api-v2.md)提交任务了。
72+
5173
## 下一步
5274
到现在为止,您已经安装好Seatunnel集群了,你可以查看Seatunnel有哪些[连接器](../../connector-v2).
5375
或者选择其他方式 [部署](../../seatunnel-engine/deployment.md).

0 commit comments

Comments
 (0)