-
Notifications
You must be signed in to change notification settings - Fork 70
/
flinkoperator_v1beta1_remotejobjar.yaml
56 lines (56 loc) · 1.53 KB
/
flinkoperator_v1beta1_remotejobjar.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
apiVersion: flinkoperator.k8s.io/v1beta1
kind: FlinkCluster
metadata:
name: flinkjobcluster-http
spec:
flinkVersion: "1.14"
image:
name: flink:1.14.3
envVars:
- name: JAR
value: https://repo1.maven.org/maven2/org/apache/flink/flink-examples-streaming_2.12/1.14.3/flink-examples-streaming_2.12-1.14.3-WordCount.jar
- name: FLINK_USR_LIB
value: /opt/flink/usrlib
jobManager:
volumes:
- name: usrlib
volumeMounts:
- mountPath: /opt/flink/usrlib
name: usrlib
initContainers:
- name: downloader
image: curlimages/curl
command: ["sh", "-c", "cd $FLINK_USR_LIB; curl -O $JAR"]
resources:
limits:
cpu: 100m
memory: 512Mi
volumeMounts:
- mountPath: /opt/flink/usrlib
name: usrlib
taskManager:
volumes:
- name: usrlib
volumeMounts:
- mountPath: /opt/flink/usrlib
name: usrlib
initContainers:
- name: downloader
image: curlimages/curl
command: ["sh", "-c", "cd $FLINK_USR_LIB; curl -O $JAR"]
resources:
limits:
cpu: 100m
memory: 512Mi
volumeMounts:
- mountPath: /opt/flink/usrlib
name: usrlib
job:
mode: Application
cleanupPolicy:
afterJobSucceeds: DeleteCluster
afterJobFails: DeleteCluster
afterJobCancelled: DeleteCluster
className: org.apache.flink.streaming.examples.wordcount.WordCount
args: ["--input", "./README.txt"]
restartPolicy: Never