-
Notifications
You must be signed in to change notification settings - Fork 242
/
Copy pathip-masq-agent.yaml
91 lines (91 loc) · 2.51 KB
/
ip-masq-agent.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: azure-ip-masq-agent-user
namespace: kube-system
spec:
selector:
matchLabels:
k8s-app: azure-ip-masq-agent-user
template:
metadata:
labels:
k8s-app: azure-ip-masq-agent-user
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.azure.com/cluster
operator: Exists
- key: type
operator: NotIn
values:
- virtual-kubelet
- key: kubernetes.io/os
operator: In
values:
- linux
automountServiceAccountToken: false
containers:
- args:
- --v=2
- --resync-interval=60
image: mcr.microsoft.com/aks/ip-masq-agent-v2:v0.1.7
imagePullPolicy: IfNotPresent
name: azure-ip-masq-agent
resources:
limits:
cpu: 500m
memory: 250Mi
requests:
cpu: 100m
memory: 50Mi
securityContext:
capabilities:
add:
- NET_ADMIN
- NET_RAW
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/config
name: azure-ip-masq-agent-config-volume
- mountPath: /run/xtables.lock
name: iptableslock
dnsPolicy: ClusterFirst
hostNetwork: true
priorityClassName: system-node-critical
restartPolicy: Always
terminationGracePeriodSeconds: 30
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- effect: NoExecute
operator: Exists
- effect: NoSchedule
operator: Exists
volumes:
- name: azure-ip-masq-agent-config-volume
projected:
defaultMode: 420
sources:
- configMap:
items:
- key: ip-masq-agent
mode: 444
path: ip-masq-agent
name: azure-ip-masq-agent-config
optional: true
- configMap:
items:
- key: ip-masq-agent-reconciled
mode: 444
path: ip-masq-agent-reconciled
name: azure-ip-masq-agent-config-user
optional: true
- hostPath:
path: /run/xtables.lock
type: FileOrCreate
name: iptableslock