Skip to content

Commit

Permalink
Merge branch 'dev-8283' into dev-8283-test
Browse files Browse the repository at this point in the history
  • Loading branch information
FrommyMind committed Dec 16, 2024
2 parents b8d5eba + 049a5f5 commit 8dcc17d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deploy/kubernetes/seatunnel/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,10 @@ Access seatunnel UI URL by:

For more restapi please refer to https://seatunnel.apache.org/docs/{{ .Chart.AppVersion }}/seatunnel-engine/rest-api
{{- end }}

Or you can just go into master pod, and use local curl command.

MASTER_POD=$(kubectl get po -l 'app.kubernetes.io/name=seatunnel-master' | sed '1d' | awk '{print $1}' | head -n1)
kubectl -n {{ .Release.Namespace }} exec -it $MASTER_POD -- /bin/bash
curl http://127.0.0.1:5801/hazelcast/rest/maps/running-jobs
curl http://127.0.0.1:5801/hazelcast/rest/maps/system-monitoring-information
11 changes: 11 additions & 0 deletions docs/en/start-v2/kubernetes/helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@ Then upgrade seatunnel.

Then you can access restapi with `http://<your domain>`

Or you can just go into master pod, and use local curl command.
```commandline
# get one of the master pods
MASTER_POD=$(kubectl get po -l 'app.kubernetes.io/name=seatunnel-master' | sed '1d' | awk '{print $1}' | head -n1)
# go into master pod container.
kubectl -n default exec -it $MASTER_POD -- /bin/bash
curl http://127.0.0.1:5801/hazelcast/rest/maps/running-jobs
curl http://127.0.0.1:5801/hazelcast/rest/maps/system-monitoring-information
```

After that you can submit your job by [rest-api](../../seatunnel-engine/rest-api-v2.md)

## What's More
Expand Down
13 changes: 13 additions & 0 deletions docs/zh/start-v2/kubernetes/helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,19 @@ ingress:

就可以使用域名`http://<your domain>`进行访问了。

或者您可以直接进入master的POD执行curl命令。.
```commandline
# 获取其中一个master pod
MASTER_POD=$(kubectl get po -l 'app.kubernetes.io/name=seatunnel-master' | sed '1d' | awk '{print $1}' | head -n1)
# 进入master pod
kubectl -n default exec -it $MASTER_POD -- /bin/bash
# 执行 restapi
curl http://127.0.0.1:5801/hazelcast/rest/maps/running-jobs
curl http://127.0.0.1:5801/hazelcast/rest/maps/system-monitoring-information
```



后面就可以使用[rest-api](../../seatunnel-engine/rest-api-v2.md)提交任务了。

## 下一步
Expand Down

0 comments on commit 8dcc17d

Please sign in to comment.