forked from infobloxopen/cni-infoblox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
infoblox-cni-install.yaml
70 lines (70 loc) · 1.58 KB
/
infoblox-cni-install.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
---
kind: ConfigMap
apiVersion: v1
metadata:
name: infoblox-cni-cfg
namespace: kube-system
labels:
tier: node
app: infoblox-cni-cfg
data:
## Network Config file contents##
00-infoblox-ipam.conf: |
{
"name": "ipam-test",
"type": "macvlan",
"master":"eth0",
"ipam": {
"type": "infoblox",
"subnet": "10.0.0.0/24",
"gateway":"10.0.0.1",
"network-view": "cni_view"
}
}
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: infoblox-cni-install
namespace: kube-system
labels:
tier: node
k8s-app: infoblox-cni-install
spec:
selector:
matchLabels:
name: infoblox-cni-install
template:
metadata:
labels:
name: infoblox-cni-install
spec:
containers:
- name: install-cni
image: infoblox/infoblox-cni-install
command: [ "/install/install-cni.sh" ]
volumeMounts:
- name: conf-loc
mountPath: /install/config
- name: host-cni-conf
mountPath: /host/etc/cni/net.d/
- name: host-cni-bin
mountPath: /host/opt/cni/bin/
hostNetwork: true
volumes:
- name: conf-loc
configMap:
name: infoblox-cni-cfg
items:
- key: 00-infoblox-ipam.conf
path: 00-infoblox-ipam.conf
- name: host-cni-conf
hostPath:
path: /etc/cni/net.d
- name: host-cni-bin
hostPath:
path: /opt/cni/bin
updateStrategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate