Add encryption to in-cluster pod traffic#911
Conversation
assets/charts/control-plane/calico-host-protection/templates/host-protection.yaml
Outdated
Show resolved
Hide resolved
6cd5126 to
beb2608
Compare
a58f31e to
8b50f72
Compare
assets/terraform-modules/aws/flatcar-linux/kubernetes/variables.tf
Outdated
Show resolved
Hide resolved
|
We should also change the MTU size when enabling this as mentioned here. Would encryption be picked up by the Calico chart on lokoctl apply? Would the MTU? |
8b50f72 to
7f07add
Compare
7f07add to
51687a4
Compare
If encryption is enabled and Calico does not align MTU by default, then I guess we can do it automatically? |
c526052 to
2239711
Compare
2239711 to
ef0e9bb
Compare
invidian
left a comment
There was a problem hiding this comment.
Just one more question, as I'm not sure if we don't change the existing behavior with failsafe ports.
ef0e9bb to
ed891c6
Compare
|
I think we should make it a habit to include a "how to test" section in PRs. I just tried using this feature using Flatcar |
assets/terraform-modules/aws/flatcar-linux/kubernetes/variables.tf
Outdated
Show resolved
Hide resolved
6cef80f to
cab4983
Compare
be1b98d to
e4758b4
Compare
assets/terraform-modules/aws/flatcar-linux/kubernetes/variables.tf
Outdated
Show resolved
Hide resolved
db862da to
7cb540b
Compare
Felixconfig should be part of calico charts and not calico-host-protection. This change is required for encrypting in-cluster pod traffic. This also introduces failsafeInboundHostPorts as a variable. Signed-off-by: knrt10 <kautilya@kinvolk.io>
844d1ca to
a5a5eb4
Compare
invidian
left a comment
There was a problem hiding this comment.
Just some last nits, otherwise LGTM.
assets/terraform-modules/aws/flatcar-linux/kubernetes/variables.tf
Outdated
Show resolved
Hide resolved
Previously we used CNI network MTU in terraform, but now using default as Physical network MTU. Signed-off-by: knrt10 <kautilya@kinvolk.io>
Signed-off-by: knrt10 <kautilya@kinvolk.io>
Calico v3.15+ support WireGuard and if enabled it encrypts in-cluster pod traffic across nodes. Signed-off-by: knrt10 <kautilya@kinvolk.io>
Signed-off-by: knrt10 <kautilya@kinvolk.io>
Signed-off-by: knrt10 <kautilya@kinvolk.io>
a5a5eb4 to
7f891d8
Compare
|
|
||
| disk_iops = var.disk_iops | ||
|
|
||
| network_mtu = 1480 |
There was a problem hiding this comment.
I think this commit could be merged with the one changing the code.
|
|
||
| enable_tls_bootstrap = true | ||
|
|
||
| encrypt_pod_traffic = true |
There was a problem hiding this comment.
Docs can be committed with the implementation.
iaguis
left a comment
There was a problem hiding this comment.
LGTM. We should mention in the release notes that we've changed the meaning of the network_mtu parameter.
|
Thank you all for the reviews. Merging now. |
Calico v3.15+ support wireguard and if enabled it encrypts in-cluster
pod traffic across nodes.
Signed-off-by: knrt10 kautilya@kinvolk.io
Release Notes
default FelixConfigurationwhile upgrading from 0.4.1network_mtuchanged from CNI network MTU to Physical network MTU.bpfLogLevelwill be briefly set fromInfotoOff.calicochart upgrade andcalico-host-protectionchart: