-
Notifications
You must be signed in to change notification settings - Fork 24
/
node.yaml
62 lines (62 loc) · 2.13 KB
/
node.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
kind: DaemonSet
apiVersion: apps/v1
metadata:
name: ${ASSET_PREFIX}-node
namespace: openshift-cluster-csi-drivers
spec:
selector:
matchLabels:
app: ${ASSET_PREFIX}-node
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 10%
template:
metadata:
annotations:
# This annotation allows the workload pinning feature to work when clusters are configured for it.
# An admission webhook will look for this annotation when Pod admission occurs to modify the
# memory and cpu resources to a custom resource name that the schedular will use to correctly
# assign Pods in a workload pinned cluster. This annotation will be stripped from Pods when
# the cluster is not configured for workload pinning.
# See (openshift/enhancements#1213) for more info.
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
# This annotation prevents eviction from the cluster-autoscaler
cluster-autoscaler.kubernetes.io/enable-ds-eviction: "false"
# This annotation prevents potential custom SCCs of taking over
openshift.io/required-scc: privileged
labels:
app: ${ASSET_PREFIX}-node
spec:
serviceAccount: ${ASSET_PREFIX}-node-sa
priorityClassName: system-node-critical
tolerations:
- operator: Exists
nodeSelector:
kubernetes.io/os: linux
containers:
volumes:
- name: kubelet-dir
hostPath:
path: /var/lib/kubelet
type: Directory
- name: socket-dir
hostPath:
path: /var/lib/kubelet/plugins/${DRIVER_NAME}/
type: DirectoryOrCreate
- name: registration-dir
hostPath:
path: /var/lib/kubelet/plugins_registry/
type: Directory
- name: device-dir
hostPath:
path: /dev
type: Directory
- name: etc-selinux
hostPath:
path: /etc/selinux
type: DirectoryOrCreate
- name: sys-fs
hostPath:
path: /sys/fs
type: Directory