Skip to content

Commit 9bccfbb

Browse files
committed
Added cni file configuration on the chart
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com>
1 parent 17c9cd8 commit 9bccfbb

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

chart/kube-flannel/templates/config.yaml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,7 @@ metadata:
77
tier: node
88
app: flannel
99
data:
10-
cni-conf.json: |
11-
{
12-
"name": "cbr0",
13-
"cniVersion": "0.3.1",
14-
"plugins": [
15-
{
16-
"type": "flannel",
17-
"delegate": {
18-
"hairpinMode": true,
19-
"isDefaultGateway": true
20-
}
21-
},
22-
{
23-
"type": "portmap",
24-
"capabilities": {
25-
"portMappings": true
26-
}
27-
}
28-
]
29-
}
10+
cni-conf.json: {{ .Values.flannel.cniConf | toJson }}
3011
net-conf.json: |
3112
{
3213
{{- if .Values.podCidr }}

chart/kube-flannel/values.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,27 @@ flannel:
5555
# Persistent keep interval to use
5656
# keepaliveInterval: 0
5757
#
58+
cniConf: |
59+
{
60+
"name": "cbr0",
61+
"cniVersion": "0.3.1",
62+
"plugins": [
63+
{
64+
"type": "flannel",
65+
"delegate": {
66+
"hairpinMode": true,
67+
"isDefaultGateway": true
68+
}
69+
},
70+
{
71+
"type": "portmap",
72+
"capabilities": {
73+
"portMappings": true
74+
}
75+
}
76+
]
77+
}
78+
#
5879
# General daemonset configs
5980
#
6081
tolerations:

0 commit comments

Comments
 (0)