Skip to content

Commit e22f385

Browse files
committed
Add aws CNI compatible cni path
Signed-off-by: Mikkel Oscar Lyderik Larsen <[email protected]>
1 parent 5e7a185 commit e22f385

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

cluster/node-pools/master-default/userdata.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,7 @@ write_files:
928928
{{- end}}
929929
{{- end}}
930930

931+
# TODO: Remove this once all nodes are running an AMI compatible with /etc/cni/net.d/10-flannel.conflist
931932
- owner: root:root
932933
path: /etc/kubernetes/cni/net.d/10-flannel.conflist
933934
content: |
@@ -944,3 +945,20 @@ write_files:
944945
}
945946
]
946947
}
948+
949+
- owner: root:root
950+
path: /etc/cni/net.d/10-flannel.conflist
951+
content: |
952+
{
953+
"name": "podnet",
954+
"cniVersion": "0.3.1",
955+
"plugins": [
956+
{
957+
"type": "flannel",
958+
"delegate": {
959+
"isDefaultGateway": true,
960+
"hairpinMode": true
961+
}
962+
}
963+
]
964+
}

cluster/node-pools/worker-splitaz/userdata.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ write_files:
136136
{{- end}}
137137
{{- end}}
138138

139+
# TODO: Remove this once all nodes are running an AMI compatible with /etc/cni/net.d/10-flannel.conflist
139140
- owner: root:root
140141
path: /etc/kubernetes/cni/net.d/10-flannel.conflist
141142
content: |
@@ -152,3 +153,20 @@ write_files:
152153
}
153154
]
154155
}
156+
157+
- owner: root:root
158+
path: /etc/cni/net.d/10-flannel.conflist
159+
content: |
160+
{
161+
"name": "podnet",
162+
"cniVersion": "0.3.1",
163+
"plugins": [
164+
{
165+
"type": "flannel",
166+
"delegate": {
167+
"isDefaultGateway": true,
168+
"hairpinMode": true
169+
}
170+
}
171+
]
172+
}

0 commit comments

Comments
 (0)