This is an automated email from the ASF dual-hosted git repository.
kirs pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-seatunnel-website.git
The following commit(s) were added to refs/heads/main by this push:
new 8c4b3d83e update seatunnel doc on kubernetes (#129)
8c4b3d83e is described below
commit 8c4b3d83e16a7b111889a3fc79f7cda3f59564bb
Author: Hisoka <[email protected]>
AuthorDate: Mon Jun 20 15:17:20 2022 +0800
update seatunnel doc on kubernetes (#129)
---
versioned_docs/version-2.1.2/start/kubernetes.mdx | 28 ++++++++++++-----------
1 file changed, 15 insertions(+), 13 deletions(-)
diff --git a/versioned_docs/version-2.1.2/start/kubernetes.mdx
b/versioned_docs/version-2.1.2/start/kubernetes.mdx
index 9146d8e9e..740901da7 100644
--- a/versioned_docs/version-2.1.2/start/kubernetes.mdx
+++ b/versioned_docs/version-2.1.2/start/kubernetes.mdx
@@ -7,7 +7,7 @@ import TabItem from '@theme/TabItem';
# Set Up with Kubernetes
-This section provides a quick guide to using SeaTunnel with Kubernetes.
+This section provides a quick guide to using SeaTunnel with Kubernetes.
## Prerequisites
@@ -43,14 +43,16 @@ To run the image with SeaTunnel, first create a
`Dockerfile`:
FROM flink:1.13
ENV SEATUNNEL_VERSION="2.1.2"
+ENV SEATUNNEL_HOME = "/opt/seatunnel"
+
+RUN mkdir -p $SEATUNNEL_HOME
RUN wget
https://archive.apache.org/dist/incubator/seatunnel/${SEATUNNEL_VERSION}/apache-seatunnel-incubating-${SEATUNNEL_VERSION}-bin.tar.gz
RUN tar -xzvf apache-seatunnel-incubating-${SEATUNNEL_VERSION}-bin.tar.gz
-RUN mkdir -p $FLINK_HOME/usrlib
-RUN cp
apache-seatunnel-incubating-${SEATUNNEL_VERSION}/lib/seatunnel-core-flink.jar
$FLINK_HOME/usrlib/seatunnel-core-flink.jar
-
-RUN rm -fr apache-seatunnel-incubating-${SEATUNNEL_VERSION}*
+RUN cp -r apache-seatunnel-incubating-${SEATUNNEL_VERSION}/* $SEATUNNEL_HOME/
+RUN rm -rf apache-seatunnel-incubating-${SEATUNNEL_VERSION}*
+RUN rm -rf $SEATUNNEL_HOME/connectors/spark
```
Then run the following commands to build the image:
@@ -59,7 +61,7 @@ docker build -t seatunnel:2.1.2-flink-1.13 -f Dockerfile .
```
Image `seatunnel:2.1.2-flink-1.13` need to be present in the host (minikube)
so that the deployment can take place.
-Load image to minikube via:
+Load image to minikube via:
```bash
minikube image load seatunnel:2.1.2-flink-1.13
```
@@ -77,7 +79,7 @@ minikube image load seatunnel:2.1.2-flink-1.13
]}>
<TabItem value="flink">
-The steps below provide a quick walk-through on setting up the Flink
Kubernetes Operator.
+The steps below provide a quick walk-through on setting up the Flink
Kubernetes Operator.
Install the certificate manager on your Kubernetes cluster to enable adding
the webhook component (only needed once per Kubernetes cluster):
@@ -118,7 +120,7 @@ flink-kubernetes-operator-5f466b8549-mgchb 1/1
Running 3 (23h
<TabItem value="flink">
In this guide we are going to use
[flink.streaming.conf](https://github.com/apache/incubator-seatunnel/blob/dev/config/flink.streaming.conf.template):
-
+
```conf
env {
execution.parallelism = 1
@@ -143,7 +145,7 @@ sink {
```
This configuration need to be present when we are going to deploy the
application (SeaTunnel) to Flink cluster (on Kubernetes), we also need to
configure a Pod to Use a PersistentVolume for Storage.
-- Create `/mnt/data` on your Node. Open a shell to the single Node in your
cluster. How you open a shell depends on how you set up your cluster. For
example, in our case weare using Minikube, you can open a shell to your Node by
entering `minikube ssh`.
+- Create `/mnt/data` on your Node. Open a shell to the single Node in your
cluster. How you open a shell depends on how you set up your cluster. For
example, in our case weare using Minikube, you can open a shell to your Node by
entering `minikube ssh`.
In your shell on that Node, create a /mnt/data directory:
```bash
minikube ssh
@@ -180,7 +182,7 @@ spec:
resource:
memory: "2048m"
cpu: 2
- podTemplate:
+ podTemplate:
spec:
containers:
- name: flink-main-container
@@ -194,8 +196,8 @@ spec:
type: Directory
job:
- jarURI: local:///opt/flink/usrlib/seatunnel-core-flink.jar
- entryClass: org.apache.seatunnel.SeatunnelFlink
+ jarURI: local:///opt/seatunnel/lib/seatunnel-core-flink.jar
+ entryClass: org.apache.seatunnel.core.flink.SeatunnelFlink
args: ["--config", "/data/flink.streaming.conf"]
parallelism: 2
upgradeMode: stateless
@@ -264,5 +266,5 @@ Happy SeaTunneling!
## What's More
-For now, you are already taking a quick look at SeaTunnel, you could see
[connector](/category/connector) to find all source and sink SeaTunnel
supported.
+For now, you are already taking a quick look at SeaTunnel, you could see
[connector](/category/connector) to find all source and sink SeaTunnel
supported.
Or see [deployment](../deployment.mdx) if you want to submit your application
in another kind of your engine cluster.