通过Helm在Kubernetes环境中快速部署和管理Apache SeaTunnel的指南

下载次数: 0状态:社区镜像维护者:Apache 软件基金会镜像仓库类型:镜像最近更新:
下载命令
点击查看

Set Up with Helm

This section provides a quick guide to use SeaTunnel with Helm.

Prerequisites

We assume that you have one local installation as follow:

  • https://docs.docker.com/
  • https://kubernetes.io/
  • https://helm.sh/docs/intro/quickstart/

So that the kubectl and helm commands are available on your local system.

Take kubernetes https://minikube.sigs.k8s.io/docs/start/ as an example, you can start a cluster with the following command:

bash
minikube start --kubernetes-version=v1.23.3

Install

Install with default settings.

bash
# Choose the corresponding version yourself
export VERSION=2.3.9
helm pull oci://registry-1.docker.io/apache/seatunnel-helm --version ${VERSION}
tar -xvf seatunnel-helm-${VERSION}.tgz
cd seatunnel-helm
helm install seatunnel .

Install with another namespace.

bash
helm install seatunnel . -n <your namespace>

Submit Job

The default config doesn't enable ingress, so you need forward the master restapi.

bash
kubectl port-forward -n default svc/seatunnel-master 5801:5801

Then you can access restapi with "[***]"

If you want to use ingress, update value.yaml

for example:

commandline
ingress:
  enabled: true
  host: "<your domain>"

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/running-jobs
curl http://127.0.0.1:5801/system-monitoring-information

After that you can submit your job by https://seatunnel.apache.org/docs/seatunnel-engine/rest-api-v2

What's More

For now, you have taken a quick look at SeaTunnel, and you can see https://seatunnel.apache.org/docs/connector-v2/source/ to find all sources and sinks SeaTunnel supported. Or see https://seatunnel.apache.org/docs/seatunnel-engine/deployment if you want to submit your application in another kind of your engine cluster.

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 seatunnel-helm 镜像标签

docker pull docker.xuanyuan.run/apache/seatunnel-helm:<标签>

DockerHub 原生拉取命令

docker pull apache/seatunnel-helm:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告