mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-11-12 08:36:36 -05:00
helm: masq traffic to the mini-qemu-metadata container so that the join-service can retrieve it's metadata (#2782)
* helm: masq traffic to the mini-qemu-metadata container * ci: fix waiting for nodes in miniconstellation e2e test
This commit is contained in:
parent
4d8f45cff6
commit
45479b307e
2 changed files with 32 additions and 14 deletions
|
|
@ -59,9 +59,18 @@ func extraCiliumValues(provider cloudprovider.Provider, conformanceMode bool, ou
|
|||
extraVals["encryption"] = map[string]any{
|
||||
"strictMode": strictMode,
|
||||
}
|
||||
|
||||
// On QEMU e.g. the join-service must talk to our mini-qemu-metadata docker container
|
||||
// This container runs inside the node CIDR, so we need to masq any pod traffic to it
|
||||
// with the node's IP address. To archive that, we override Cilium's default masq ranges
|
||||
// with an empty list.
|
||||
masqCIDRs := []string{}
|
||||
if provider != cloudprovider.QEMU {
|
||||
masqCIDRs = append(masqCIDRs, output.IPCidrNode)
|
||||
}
|
||||
extraVals["ipMasqAgent"] = map[string]any{
|
||||
"config": map[string]any{
|
||||
"nonMasqueradeCIDRs": []string{output.IPCidrNode},
|
||||
"nonMasqueradeCIDRs": masqCIDRs,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue