mirror of https://github.com/kubernetes/kops.git
Update flannel manifest to v0.11.0 and add iptables-resync flag
This commit is contained in:
parent
bfae48c08d
commit
db6b29ba10
|
@ -440,6 +440,19 @@ For support with Cilium Network Policies you can reach out on Slack or Github:
|
||||||
- [Cilium Github](https://github.com/cilium/cilium)
|
- [Cilium Github](https://github.com/cilium/cilium)
|
||||||
- [Cilium Slack](https://cilium.io/slack)
|
- [Cilium Slack](https://cilium.io/slack)
|
||||||
|
|
||||||
|
### Flannel Example for CNI
|
||||||
|
|
||||||
|
#### Configuraing Flannel iptables resync period
|
||||||
|
|
||||||
|
Flannel iptables resync option is configurable via editing a cluster and adding
|
||||||
|
`iptablesResyncSeconds` option to spec:
|
||||||
|
|
||||||
|
```
|
||||||
|
networking:
|
||||||
|
flannel:
|
||||||
|
iptablesResyncSeconds: 360
|
||||||
|
```
|
||||||
|
|
||||||
### Validating CNI Installation
|
### Validating CNI Installation
|
||||||
|
|
||||||
You will notice that `kube-dns` fails to start properly until you deploy your CNI provider.
|
You will notice that `kube-dns` fails to start properly until you deploy your CNI provider.
|
||||||
|
|
|
@ -104,7 +104,7 @@ spec:
|
||||||
- operator: Exists
|
- operator: Exists
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: install-cni
|
- name: install-cni
|
||||||
image: quay.io/coreos/flannel:v0.10.0-amd64
|
image: quay.io/coreos/flannel:v0.11.0-amd64
|
||||||
command:
|
command:
|
||||||
- cp
|
- cp
|
||||||
args:
|
args:
|
||||||
|
@ -118,8 +118,12 @@ spec:
|
||||||
mountPath: /etc/kube-flannel/
|
mountPath: /etc/kube-flannel/
|
||||||
containers:
|
containers:
|
||||||
- name: kube-flannel
|
- name: kube-flannel
|
||||||
image: quay.io/coreos/flannel:v0.10.0-amd64
|
image: quay.io/coreos/flannel:v0.11.0-amd64
|
||||||
command: [ "/opt/bin/flanneld", "--ip-masq", "--kube-subnet-mgr" ]
|
command:
|
||||||
|
- "/opt/bin/flanneld"
|
||||||
|
- "--ip-masq"
|
||||||
|
- "--kube-subnet-mgr"
|
||||||
|
- "--iptables-resync={{- or .Networking.Flannel.IptablesResyncSeconds "5" }}"
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -99,7 +99,7 @@ spec:
|
||||||
- operator: Exists
|
- operator: Exists
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: install-cni
|
- name: install-cni
|
||||||
image: quay.io/coreos/flannel:v0.10.0-amd64
|
image: quay.io/coreos/flannel:v0.11.0-amd64
|
||||||
command:
|
command:
|
||||||
- cp
|
- cp
|
||||||
args:
|
args:
|
||||||
|
@ -113,8 +113,12 @@ spec:
|
||||||
mountPath: /etc/kube-flannel/
|
mountPath: /etc/kube-flannel/
|
||||||
containers:
|
containers:
|
||||||
- name: kube-flannel
|
- name: kube-flannel
|
||||||
image: quay.io/coreos/flannel:v0.10.0-amd64
|
image: quay.io/coreos/flannel:v0.11.0-amd64
|
||||||
command: [ "/opt/bin/flanneld", "--ip-masq", "--kube-subnet-mgr" ]
|
command:
|
||||||
|
- "/opt/bin/flanneld"
|
||||||
|
- "--ip-masq"
|
||||||
|
- "--kube-subnet-mgr"
|
||||||
|
- "--iptables-resync={{- or .Networking.Flannel.IptablesResyncSeconds "5" }}"
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -54,8 +54,12 @@ spec:
|
||||||
serviceAccountName: flannel
|
serviceAccountName: flannel
|
||||||
containers:
|
containers:
|
||||||
- name: kube-flannel
|
- name: kube-flannel
|
||||||
image: quay.io/coreos/flannel:v0.10.0-amd64
|
image: quay.io/coreos/flannel:v0.11.0-amd64
|
||||||
command: [ "/opt/bin/flanneld", "--ip-masq", "--kube-subnet-mgr" ]
|
command:
|
||||||
|
- "/opt/bin/flanneld"
|
||||||
|
- "--ip-masq"
|
||||||
|
- "--kube-subnet-mgr"
|
||||||
|
- "--iptables-resync={{- or .Networking.Flannel.IptablesResyncSeconds "5" }}"
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
env:
|
env:
|
||||||
|
@ -79,7 +83,7 @@ spec:
|
||||||
- name: flannel-cfg
|
- name: flannel-cfg
|
||||||
mountPath: /etc/kube-flannel/
|
mountPath: /etc/kube-flannel/
|
||||||
- name: install-cni
|
- name: install-cni
|
||||||
image: quay.io/coreos/flannel:v0.10.0-amd64
|
image: quay.io/coreos/flannel:v0.11.0-amd64
|
||||||
command: [ "/bin/sh", "-c", "set -e -x; cp -f /etc/kube-flannel/cni-conf.json /etc/cni/net.d/10-flannel.conf; while true; do sleep 3600; done" ]
|
command: [ "/bin/sh", "-c", "set -e -x; cp -f /etc/kube-flannel/cni-conf.json /etc/cni/net.d/10-flannel.conf; while true; do sleep 3600; done" ]
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
@ -102,4 +106,4 @@ spec:
|
||||||
path: /etc/cni/net.d
|
path: /etc/cni/net.d
|
||||||
- name: flannel-cfg
|
- name: flannel-cfg
|
||||||
configMap:
|
configMap:
|
||||||
name: kube-flannel-cfg
|
name: kube-flannel-cfg
|
||||||
|
|
Loading…
Reference in New Issue