Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions src/data/playground-configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,48 @@ export const chartConfigs: Record<string, ChartConfig> = {
},
],
},
{
name: 'Network Policy',
collapsible: true,
gateField: 'networkPolicy.enabled',
fields: [
{
label: 'Egress Rules',
key: 'networkPolicy.egress.enabled',
type: 'toggle',
default: 'true',
description: 'Add explicit egress rules',
},
{
label: 'DNS Egress',
key: 'networkPolicy.egress.allowDNS',
type: 'toggle',
default: 'true',
description: 'Allow DNS egress',
},
{
label: 'Kubelet Egress',
key: 'networkPolicy.egress.allowKubelet',
type: 'toggle',
default: 'true',
description: 'Allow kubelet scrapes',
},
{
label: 'Extra Egress CIDR',
key: 'networkPolicy.egress.extraEgress[0].to[0].ipBlock.cidr',
type: 'text',
default: '10.80.0.0/16',
description: 'Additional egress destination',
},
{
label: 'Extra Egress Port',
key: 'networkPolicy.egress.extraEgress[0].ports[0].port',
type: 'number',
default: '443',
description: 'Additional TCP egress port',
},
],
},
],
'oauth2-proxy': [
{
Expand Down
4 changes: 3 additions & 1 deletion src/pages/docs/charts/metrics-server.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ networkPolicy:
enabled: true
egress:
enabled: true
allowDns: true
allowDNS: true
extraEgress: []
```

Host networking is opt-in for platforms where pod-to-kubelet routing requires it:
Expand Down Expand Up @@ -181,6 +182,7 @@ the APIService condition.
| `metricsServer.kubelet.insecureTLS` | `false` | Disable kubelet TLS verification for local clusters. |
| `hostNetwork.enabled` | `false` | Use host networking. |
| `service.ipFamilyPolicy` | `null` | Optional Service dual-stack policy. |
| `networkPolicy.egress.extraEgress` | `[]` | Append full custom NetworkPolicy egress rules. |
| `serviceMonitor.enabled` | `false` | Render ServiceMonitor. |

## Links
Expand Down
1 change: 1 addition & 0 deletions src/pages/playground.astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const siteSyncPlaygroundConfigs: Record<string, string> = {
changedetection: 'src/data/playground-configs.ts',
medikeep: 'src/data/playground-configs.ts',
memcached: 'src/data/playground-configs.ts',
'metrics-server': 'src/data/playground-configs.ts',
notediscovery: 'src/data/playground-configs.ts',
poznote: 'src/data/playground-configs.ts',
};
Expand Down