forked from Tencent/caelus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nodemanager.yaml
62 lines (62 loc) · 1.55 KB
/
nodemanager.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
62
apiVersion: apps/v1
kind: DaemonSet
metadata:
annotations:
mixer.kubernetes.io/app-class: greedy
labels:
app: node-manager
name: node-manager
namespace: hadoop-yarn
spec:
selector:
matchLabels:
app: node-manager
template:
metadata:
annotations:
mixer.kubernetes.io/app-class: greedy
labels:
app: node-manager
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- node-manager
topologyKey: kubernetes.io/hostname
containers:
- env:
- name: GINIT_PORT
value: xxx
- name: USER
value: xxx
- name: GROUP
value: xxx
- name: HADOOP_CONF_DIR
value: /xxx
- name: HADOOP_YARN_HOME
value: /xxx
- name: PID_FILE
value: /xxx/yarn-nodemanager.pid
- name: CGROUP_PATH
value: /sys/fs/cgroup
- name: CONTAINER_EXECUTOR
value: org.apache.hadoop.yarn.server.nodemanager.LinuxContainerExecutor
- name: NM_LOCAL_DIRS
value: /xxx
- name: MY_NODE_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
image: xxxx
imagePullPolicy: IfNotPresent
name: node-manager
resources: {}
dnsPolicy: ClusterFirst
nodeSelector:
nodemanager: "true"
restartPolicy: Always