2022-09-05 03:06:08 -04:00
|
|
|
/*
|
|
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2022-08-12 04:20:19 -04:00
|
|
|
package helm
|
|
|
|
|
2023-06-26 04:13:28 -04:00
|
|
|
import "github.com/edgelesssys/constellation/v2/internal/cloud/cloudprovider"
|
|
|
|
|
2023-03-03 06:43:33 -05:00
|
|
|
// Values for the Cilium Helm releases for AWS.
|
2023-06-26 04:13:28 -04:00
|
|
|
var ciliumVals = map[string]map[string]any{
|
|
|
|
cloudprovider.AWS.String(): {
|
|
|
|
"endpointRoutes": map[string]any{
|
|
|
|
"enabled": true,
|
|
|
|
},
|
2023-10-25 07:54:32 -04:00
|
|
|
"extraArgs": []string{"--node-encryption-opt-out-labels=invalid.label"},
|
2023-06-26 04:13:28 -04:00
|
|
|
"encryption": map[string]any{
|
2023-10-16 13:14:53 -04:00
|
|
|
"enabled": true,
|
|
|
|
"type": "wireguard",
|
|
|
|
"nodeEncryption": true,
|
|
|
|
"strictMode": map[string]any{
|
2023-10-25 18:33:48 -04:00
|
|
|
"enabled": true,
|
|
|
|
"allowRemoteNodeIdentities": false,
|
|
|
|
"podCIDRList": []string{"10.244.0.0/16"},
|
2023-10-16 13:14:53 -04:00
|
|
|
},
|
2023-06-26 04:13:28 -04:00
|
|
|
},
|
|
|
|
"l7Proxy": false,
|
|
|
|
"ipam": map[string]any{
|
|
|
|
"operator": map[string]any{
|
|
|
|
"clusterPoolIPv4PodCIDRList": []string{
|
|
|
|
"10.244.0.0/16",
|
|
|
|
},
|
2022-10-21 08:41:31 -04:00
|
|
|
},
|
|
|
|
},
|
|
|
|
"image": map[string]any{
|
2023-06-26 04:13:28 -04:00
|
|
|
"repository": "ghcr.io/3u13r/cilium",
|
|
|
|
"suffix": "",
|
2023-10-16 13:14:53 -04:00
|
|
|
"tag": "v1.15.0-pre.2-edg.1",
|
|
|
|
"digest": "sha256:eebf631fd0f27e1f28f1fdeb2e049f2c83b887381466245c4b3e26440daefa27",
|
2023-06-26 04:13:28 -04:00
|
|
|
"useDigest": true,
|
2022-10-21 08:41:31 -04:00
|
|
|
},
|
2022-10-25 09:51:23 -04:00
|
|
|
"operator": map[string]any{
|
2023-06-26 04:13:28 -04:00
|
|
|
"image": map[string]any{
|
|
|
|
"repository": "ghcr.io/3u13r/operator",
|
2023-10-16 13:14:53 -04:00
|
|
|
"tag": "v1.15.0-pre.2-edg.1",
|
2023-06-26 04:13:28 -04:00
|
|
|
"suffix": "",
|
2023-10-16 13:14:53 -04:00
|
|
|
"genericDigest": "sha256:bfaeac2e05e8c38f439b0fbc36558fd8d11602997f2641423e8d86bd7ac6a88c",
|
2023-06-26 04:13:28 -04:00
|
|
|
"useDigest": true,
|
2022-08-12 04:20:19 -04:00
|
|
|
},
|
|
|
|
},
|
2023-06-26 04:13:28 -04:00
|
|
|
"kubeProxyReplacement": "strict",
|
|
|
|
"enableCiliumEndpointSlice": true,
|
|
|
|
"kubeProxyReplacementHealthzBindAddr": "0.0.0.0:10256",
|
2022-08-12 04:20:19 -04:00
|
|
|
},
|
2023-06-26 04:13:28 -04:00
|
|
|
cloudprovider.Azure.String(): {
|
|
|
|
"endpointRoutes": map[string]any{
|
|
|
|
"enabled": true,
|
|
|
|
},
|
2023-10-25 07:54:32 -04:00
|
|
|
"extraArgs": []string{"--node-encryption-opt-out-labels=invalid.label"},
|
2023-06-26 04:13:28 -04:00
|
|
|
"encryption": map[string]any{
|
2023-10-16 13:14:53 -04:00
|
|
|
"enabled": true,
|
|
|
|
"type": "wireguard",
|
|
|
|
"nodeEncryption": true,
|
|
|
|
"strictMode": map[string]any{
|
2023-10-25 18:33:48 -04:00
|
|
|
"enabled": true,
|
|
|
|
"allowRemoteNodeIdentities": false,
|
|
|
|
"podCIDRList": []string{"10.244.0.0/16"},
|
2023-10-16 13:14:53 -04:00
|
|
|
},
|
2023-06-26 04:13:28 -04:00
|
|
|
},
|
|
|
|
"l7Proxy": false,
|
|
|
|
"ipam": map[string]any{
|
|
|
|
"operator": map[string]any{
|
|
|
|
"clusterPoolIPv4PodCIDRList": []string{
|
|
|
|
"10.244.0.0/16",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2022-10-25 09:51:23 -04:00
|
|
|
"image": map[string]any{
|
2023-06-26 04:13:28 -04:00
|
|
|
"repository": "ghcr.io/3u13r/cilium",
|
|
|
|
"suffix": "",
|
2023-10-16 13:14:53 -04:00
|
|
|
"tag": "v1.15.0-pre.2-edg.1",
|
|
|
|
"digest": "sha256:eebf631fd0f27e1f28f1fdeb2e049f2c83b887381466245c4b3e26440daefa27",
|
2023-06-26 04:13:28 -04:00
|
|
|
"useDigest": true,
|
|
|
|
},
|
|
|
|
"operator": map[string]any{
|
|
|
|
"image": map[string]any{
|
|
|
|
"repository": "ghcr.io/3u13r/operator",
|
2023-10-16 13:14:53 -04:00
|
|
|
"tag": "v1.15.0-pre.2-edg.1",
|
2023-06-26 04:13:28 -04:00
|
|
|
"suffix": "",
|
2023-10-16 13:14:53 -04:00
|
|
|
"genericDigest": "sha256:bfaeac2e05e8c38f439b0fbc36558fd8d11602997f2641423e8d86bd7ac6a88c",
|
2023-06-26 04:13:28 -04:00
|
|
|
"useDigest": true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"egressMasqueradeInterfaces": "eth0",
|
|
|
|
"enableIPv4Masquerade": true,
|
|
|
|
"kubeProxyReplacement": "strict",
|
|
|
|
"enableCiliumEndpointSlice": true,
|
|
|
|
"kubeProxyReplacementHealthzBindAddr": "0.0.0.0:10256",
|
|
|
|
},
|
|
|
|
cloudprovider.GCP.String(): {
|
|
|
|
"endpointRoutes": map[string]any{
|
|
|
|
"enabled": true,
|
|
|
|
},
|
2023-10-25 07:54:32 -04:00
|
|
|
"extraArgs": []string{"--node-encryption-opt-out-labels=invalid.label"},
|
|
|
|
"tunnel": "disabled",
|
2023-06-26 04:13:28 -04:00
|
|
|
"encryption": map[string]any{
|
2023-10-16 13:14:53 -04:00
|
|
|
"enabled": true,
|
|
|
|
"type": "wireguard",
|
|
|
|
"nodeEncryption": true,
|
|
|
|
"strictMode": map[string]any{
|
2023-10-25 18:33:48 -04:00
|
|
|
"enabled": true,
|
|
|
|
"allowRemoteNodeIdentities": false,
|
2023-10-16 13:14:53 -04:00
|
|
|
},
|
2022-08-12 04:20:19 -04:00
|
|
|
},
|
2022-10-25 09:51:23 -04:00
|
|
|
"image": map[string]any{
|
2023-06-26 04:13:28 -04:00
|
|
|
"repository": "ghcr.io/3u13r/cilium",
|
|
|
|
"suffix": "",
|
2023-10-16 13:14:53 -04:00
|
|
|
"tag": "v1.15.0-pre.2-edg.1",
|
|
|
|
"digest": "sha256:eebf631fd0f27e1f28f1fdeb2e049f2c83b887381466245c4b3e26440daefa27",
|
2023-06-26 04:13:28 -04:00
|
|
|
"useDigest": true,
|
2022-08-12 04:20:19 -04:00
|
|
|
},
|
2023-03-17 04:52:23 -04:00
|
|
|
"operator": map[string]any{
|
2023-06-26 04:13:28 -04:00
|
|
|
"image": map[string]any{
|
|
|
|
"repository": "ghcr.io/3u13r/operator",
|
|
|
|
"suffix": "",
|
2023-10-16 13:14:53 -04:00
|
|
|
"tag": "v1.15.0-pre.2-edg.1",
|
|
|
|
"genericDigest": "sha256:bfaeac2e05e8c38f439b0fbc36558fd8d11602997f2641423e8d86bd7ac6a88c",
|
2023-06-26 04:13:28 -04:00
|
|
|
"useDigest": true,
|
2023-03-17 04:52:23 -04:00
|
|
|
},
|
|
|
|
},
|
2023-06-26 04:13:28 -04:00
|
|
|
"l7Proxy": false,
|
|
|
|
"ipam": map[string]any{
|
|
|
|
"mode": "kubernetes",
|
|
|
|
},
|
|
|
|
"kubeProxyReplacement": "strict",
|
|
|
|
"enableCiliumEndpointSlice": true,
|
|
|
|
"kubeProxyReplacementHealthzBindAddr": "0.0.0.0:10256",
|
2023-03-17 04:52:23 -04:00
|
|
|
},
|
2023-06-26 04:13:28 -04:00
|
|
|
cloudprovider.OpenStack.String(): {
|
|
|
|
"endpointRoutes": map[string]any{
|
|
|
|
"enabled": true,
|
|
|
|
},
|
2023-10-25 07:54:32 -04:00
|
|
|
"extraArgs": []string{"--node-encryption-opt-out-labels=invalid.label"},
|
2023-06-26 04:13:28 -04:00
|
|
|
"encryption": map[string]any{
|
2023-10-16 13:14:53 -04:00
|
|
|
"enabled": true,
|
|
|
|
"type": "wireguard",
|
|
|
|
"nodeEncryption": true,
|
|
|
|
"strictMode": map[string]any{
|
2023-10-23 09:59:19 -04:00
|
|
|
"enabled": true,
|
|
|
|
"podCIDRList": []string{"10.244.0.0/16"},
|
2023-10-16 13:14:53 -04:00
|
|
|
},
|
2023-06-26 04:13:28 -04:00
|
|
|
},
|
|
|
|
"l7Proxy": false,
|
|
|
|
"ipam": map[string]any{
|
|
|
|
"operator": map[string]any{
|
|
|
|
"clusterPoolIPv4PodCIDRList": []string{
|
|
|
|
"10.244.0.0/16",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2023-03-17 04:52:23 -04:00
|
|
|
"image": map[string]any{
|
2023-06-26 04:13:28 -04:00
|
|
|
"repository": "ghcr.io/3u13r/cilium",
|
|
|
|
"suffix": "",
|
2023-10-16 13:14:53 -04:00
|
|
|
"tag": "v1.15.0-pre.2-edg.1",
|
|
|
|
"digest": "sha256:eebf631fd0f27e1f28f1fdeb2e049f2c83b887381466245c4b3e26440daefa27",
|
2023-06-26 04:13:28 -04:00
|
|
|
"useDigest": true,
|
2023-03-17 04:52:23 -04:00
|
|
|
},
|
2023-06-26 04:13:28 -04:00
|
|
|
"operator": map[string]any{
|
|
|
|
"image": map[string]any{
|
|
|
|
"repository": "ghcr.io/3u13r/operator",
|
2023-10-16 13:14:53 -04:00
|
|
|
"tag": "v1.15.0-pre.2-edg.1",
|
2023-06-26 04:13:28 -04:00
|
|
|
"suffix": "",
|
2023-10-16 13:14:53 -04:00
|
|
|
"genericDigest": "sha256:bfaeac2e05e8c38f439b0fbc36558fd8d11602997f2641423e8d86bd7ac6a88c",
|
2023-06-26 04:13:28 -04:00
|
|
|
"useDigest": true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"kubeProxyReplacement": "strict",
|
|
|
|
"enableCiliumEndpointSlice": true,
|
|
|
|
"kubeProxyReplacementHealthzBindAddr": "0.0.0.0:10256",
|
2023-03-17 04:52:23 -04:00
|
|
|
},
|
2023-06-26 04:13:28 -04:00
|
|
|
cloudprovider.QEMU.String(): {
|
|
|
|
"endpointRoutes": map[string]any{
|
|
|
|
"enabled": true,
|
|
|
|
},
|
|
|
|
"encryption": map[string]any{
|
2023-10-16 13:14:53 -04:00
|
|
|
"enabled": true,
|
|
|
|
"type": "wireguard",
|
|
|
|
"nodeEncryption": true,
|
|
|
|
"strictMode": map[string]any{
|
2023-10-23 09:59:19 -04:00
|
|
|
"enabled": true,
|
|
|
|
"podCIDRList": []string{"10.244.0.0/16"},
|
2023-10-16 13:14:53 -04:00
|
|
|
},
|
2023-06-26 04:13:28 -04:00
|
|
|
},
|
2022-10-25 09:51:23 -04:00
|
|
|
"image": map[string]any{
|
2023-06-26 04:13:28 -04:00
|
|
|
"repository": "ghcr.io/3u13r/cilium",
|
|
|
|
"suffix": "",
|
2023-10-16 13:14:53 -04:00
|
|
|
"tag": "v1.15.0-pre.2-edg.1",
|
|
|
|
"digest": "sha256:eebf631fd0f27e1f28f1fdeb2e049f2c83b887381466245c4b3e26440daefa27",
|
2023-06-26 04:13:28 -04:00
|
|
|
"useDigest": true,
|
2022-09-02 14:19:20 -04:00
|
|
|
},
|
2022-10-24 18:49:58 -04:00
|
|
|
"operator": map[string]any{
|
2023-06-26 04:13:28 -04:00
|
|
|
"image": map[string]any{
|
|
|
|
"repository": "ghcr.io/3u13r/operator",
|
|
|
|
"suffix": "",
|
2023-10-16 13:14:53 -04:00
|
|
|
"tag": "v1.15.0-pre.2-edg.1",
|
|
|
|
"genericDigest": "sha256:bfaeac2e05e8c38f439b0fbc36558fd8d11602997f2641423e8d86bd7ac6a88c",
|
2023-06-26 04:13:28 -04:00
|
|
|
"useDigest": true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"ipam": map[string]any{
|
|
|
|
"operator": map[string]any{
|
|
|
|
"clusterPoolIPv4PodCIDRList": []string{
|
|
|
|
"10.244.0.0/16",
|
|
|
|
},
|
2022-10-24 18:49:58 -04:00
|
|
|
},
|
|
|
|
},
|
2023-06-26 04:13:28 -04:00
|
|
|
"kubeProxyReplacement": "strict",
|
|
|
|
"enableCiliumEndpointSlice": true,
|
|
|
|
"kubeProxyReplacementHealthzBindAddr": "0.0.0.0:10256",
|
|
|
|
"l7Proxy": false,
|
2022-10-24 18:49:58 -04:00
|
|
|
},
|
2022-08-12 04:20:19 -04:00
|
|
|
}
|
2023-07-20 03:33:45 -04:00
|
|
|
|
2023-07-24 04:30:53 -04:00
|
|
|
var controlPlaneNodeSelector = map[string]any{"node-role.kubernetes.io/control-plane": ""}
|
|
|
|
|
2023-07-20 03:33:45 -04:00
|
|
|
var controlPlaneTolerations = []map[string]any{
|
|
|
|
{
|
|
|
|
"key": "node-role.kubernetes.io/control-plane",
|
|
|
|
"effect": "NoSchedule",
|
|
|
|
"operator": "Exists",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "node-role.kubernetes.io/master",
|
|
|
|
"effect": "NoSchedule",
|
|
|
|
"operator": "Exists",
|
|
|
|
},
|
|
|
|
}
|