-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathververicaplatform_v1beta1_vpdeployment.yaml
62 lines (61 loc) · 1.98 KB
/
ververicaplatform_v1beta1_vpdeployment.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
57
58
59
60
61
apiVersion: ververicaplatform.fintechstudios.com/v1beta1
kind: VpDeployment
metadata:
name: top-speed-v1
namespace: top-speed
spec:
deploymentTargetName: top-speed
metadata:
# must be `default` for the Community Edition
namespace: default
spec:
state: RUNNING
upgradeStrategy:
kind: STATEFUL
restoreStrategy:
kind: LATEST_SAVEPOINT
maxSavepointCreationAttempts: 4
maxJobCreationAttempts: 4
template:
metadata:
annotations:
test: "true"
spec:
artifact:
kind: JAR
jarUri: https://repo1.maven.org/maven2/org/apache/flink/flink-examples-streaming_2.12/1.10.0/flink-examples-streaming_2.12-1.10.0-TopSpeedWindowing.jar
mainArgs: --windowSize 10 --windowUnit minutes
entryClass: org.apache.flink.streaming.examples.windowing.TopSpeedWindowing
flinkVersion: "1.10"
flinkImageRegistry: registry.platform.data-artisans.net/v2.1
flinkImageRepository: flink
flinkImageTag: 1.10.0-stream1-scala_2.12
parallelism: 2
numberOfTaskManagers: 2
resources:
jobmanager:
cpu: "1.5"
memory: 1g
taskmanager:
memory: 1.5g
flinkConfiguration:
high-availability.storageDir: s3://flink/haState
# Should replace these with a distributed file system URI
state.savepoints.dir: file:///flink/state/savepoints
state.checkpoints.dir: file:///flink/state/checkpoints
logging:
log4jLoggers:
"com.fintechstudios": DEBUG
kubernetes:
pods:
# volumeMounts:
# - name: config
# volume:
# name: config
# configMap:
# name: test-configmap
# volumeMount:
# name: config
# mountPath: /opt/flink/conf
annotations:
"iam.amazonaws.com/role": k8s-flink-job