-
Notifications
You must be signed in to change notification settings - Fork 5
/
taskmanager-job-deployment.yaml
54 lines (54 loc) · 1.37 KB
/
taskmanager-job-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
apiVersion: apps/v1
kind: Deployment
metadata:
name: flink-taskmanager
spec:
replicas: 1 # here, we configure the scale
selector:
matchLabels:
app: flink
component: taskmanager
template:
metadata:
annotations:
prometheus.io/port: '9249'
prometheus.io/scrape: 'true'
labels:
app: flink
component: taskmanager
spec:
containers:
- name: taskmanager
image: rmetzger/flink:1.13.0-reactive-demo
imagePullPolicy: Always
resources:
requests:
cpu: 250m
limits:
cpu: 500m
env:
args: ["taskmanager"]
ports:
- containerPort: 6122
name: rpc
- containerPort: 6125
name: query-state
livenessProbe:
tcpSocket:
port: 6122
initialDelaySeconds: 30
periodSeconds: 60
volumeMounts:
- name: flink-config-volume
mountPath: /opt/flink/conf/
securityContext:
runAsUser: 9999 # refers to user _flink_ from official flink image, change if necessary
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