-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathblobfuse-flexvolume.yaml
61 lines (61 loc) · 1.69 KB
/
blobfuse-flexvolume.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: apps/v1
kind: DaemonSet
metadata:
name: blobfuse-flexvol-installer
namespace: kube-system
labels:
k8s-app: blobfuse
kubernetes.io/cluster-service: "true"
spec:
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 50%
selector:
matchLabels:
name: blobfuse
template:
metadata:
labels:
name: blobfuse
kubernetes.io/cluster-service: "true"
{{- if IsKubernetesVersionGe "1.17.0"}}
annotations:
cluster-autoscaler.kubernetes.io/daemonset-pod: "true"
{{- end}}
spec:
priorityClassName: system-cluster-critical
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: agentpool
operator: NotIn
values:
- flatcar
containers:
- name: blobfuse-flexvol-installer
image: {{ContainerImage "blobfuse-flexvolume"}}
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: {{ContainerCPUReqs "blobfuse-flexvolume"}}
memory: {{ContainerMemReqs "blobfuse-flexvolume"}}
limits:
cpu: {{ContainerCPULimits "blobfuse-flexvolume"}}
memory: {{ContainerMemLimits "blobfuse-flexvolume"}}
volumeMounts:
- name: volplugins
mountPath: /etc/kubernetes/volumeplugins/
- name: varlog
mountPath: /var/log/
volumes:
- name: varlog
hostPath:
path: /var/log/
- name: volplugins
hostPath:
path: /etc/kubernetes/volumeplugins/
nodeSelector:
kubernetes.io/os: linux