-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.libsonnet
38 lines (34 loc) · 1.29 KB
/
config.libsonnet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
_config+:: {
helm:: {
Capabilities:: {
KubeVersion: 'v1.24.0',
},
},
linkerd2_cni+: {
local c = self,
kubeVersion: $._config.helm.Capabilities.KubeVersion,
namespace: 'linkerd-cni', // This may need special care if customizing together with enablePSP: true
enablePSP: false,
iKnowWhatImDoing: false,
assert !self.enablePSP || self.namespace == 'linkerd-cni' || self.iKnowWhatImDoing : |||
Using a custom namespace is not supported together with enablePSP.
If PSP + a custom namespace is desired, set the `iKnowWhatImDoing` value to true
while also adding this to your environment: + {
pod_security_policy_linkerd_custom_namespace_cni+:
k.policy.v1beta1.podSecurityPolicy.spec.withVolumesMixin(['configMap']),
}
|||,
// In newer versions, this is now default to empty again and instead have added
// proxyAdminPort and proxyControlPort values that allow proxy inbound traffic.
ignoreInboundPorts: [],
ignoreOutboundPorts: [],
values+: {
local values = self,
enablePSP: c.enablePSP,
ignoreInboundPorts: std.join(',', c.ignoreInboundPorts),
ignoreOutboundPorts: std.join(',', c.ignoreOutboundPorts),
},
},
},
}