on initial setup node not started. add missed config for first run
cni.go:196] Unable to update cni config: No networks found in /etc/cni/net.d kubelet.go:2095] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
This commit is contained in:
parent
a9f4038fcd
commit
3c1bfaee6e
2 changed files with 24 additions and 0 deletions
|
@ -8,6 +8,11 @@
|
|||
register: flannel_rbac_manifest
|
||||
when: inventory_hostname == groups['kube-master'][0] and rbac_enabled
|
||||
|
||||
- name: Flannel | Create cni-flannel config
|
||||
template:
|
||||
src: 10-flannel.conflist.j2
|
||||
dest: "/etc/cni/net.d/10-flannel.conflist"
|
||||
|
||||
- name: Flannel | Create cni-flannel manifest
|
||||
template:
|
||||
src: cni-flannel.yml.j2
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"name":"cbr0",
|
||||
"cniVersion":"0.3.1",
|
||||
"plugins":[
|
||||
{
|
||||
"type":"flannel",
|
||||
"delegate":{
|
||||
"forceAddress":true,
|
||||
"isDefaultGateway":true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type":"portmap",
|
||||
"capabilities":{
|
||||
"portMappings":true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue