forked from tillrohrmann/flink-k8s-local-state-pv-poc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jobmanager-session-deployment.yaml
60 lines (60 loc) · 1.64 KB
/
jobmanager-session-deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: flink-jobmanager
spec:
replicas: 1
selector:
matchLabels:
app: flink
component: jobmanager
template:
metadata:
labels:
app: flink
component: jobmanager
spec:
containers:
- name: jobmanager
image: flink:1.15-pv
args: ["jobmanager"]
env:
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: ENABLE_BUILT_IN_PLUGINS
value: "flink-s3-fs-hadoop-1.15-SNAPSHOT.jar"
args: ["jobmanager"]
ports:
- containerPort: 6123
name: rpc
- containerPort: 6124
name: blob-server
- containerPort: 8081
name: webui
livenessProbe:
tcpSocket:
port: 6123
initialDelaySeconds: 30
periodSeconds: 60
volumeMounts:
- name: flink-config-volume
mountPath: /opt/flink/conf
- name: ha-storage
mountPath: /ha-storage
# securityContext:
# runAsUser: 9999 # refers to user _flink_ from official flink image, change if necessary
serviceAccountName: flink-service-account # Service account which has the permissions to create, edit, delete ConfigMaps
volumes:
- name: flink-config-volume
configMap:
name: flink-config
items:
- key: flink-conf.yaml
path: flink-conf.yaml
- key: log4j-console.properties
path: log4j-console.properties
- name: ha-storage
hostPath:
path: /home/docker/flink