mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-07 02:27:43 +03:00
add macvlan cni to kubespray (#4901)
* add macvlan cni to kubespray * macvlan: lint yaml files and fix sample config file * macvlan: add OWNERS file * add macvlan to README * macvlan : CI first shoot * macvlan : CI add full masquerade * delegate retrive pod cidr to master only * macvlan: add config for CI * macvlan: add netchecker deployment
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
bc7d1f36ea
commit
f599c2a691
15
roles/network_plugin/macvlan/templates/10-macvlan.conf.j2
Normal file
15
roles/network_plugin/macvlan/templates/10-macvlan.conf.j2
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"cniVersion": "0.3.0",
|
||||
"name": "mynet",
|
||||
"type": "macvlan",
|
||||
"master": "{{ macvlan_interface }}",
|
||||
"hairpinMode": true,
|
||||
"ipam": {
|
||||
"type": "host-local",
|
||||
"subnet": "{{ node_pod_cidr }}",
|
||||
"routes": [
|
||||
{ "dst": "0.0.0.0/0" }
|
||||
],
|
||||
"gateway": "{{ node_pod_cidr|ipaddr('net')|ipaddr(1)|ipaddr('address') }}"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user