-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
connectivity: Add Control Plane Node Connectivity Tests
The control plane nodes create unique policy selection contexts that allow us to test that label selection of host and kube-apiserver entities is correct. This change adds control plane client-pods on every control plan node when the hidden test variable `--k8s-localhost-test` is enabled. Control plane components, as well as the control plane host are queried with control plane policy selections in place. Signed-off-by: Nate Sweet <[email protected]>
- Loading branch information
1 parent
e33d2c5
commit 85355f3
Showing
13 changed files
with
356 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
connectivity/manifests/client-egress-to-cidr-cp-host-knp.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# This policy allows packets to all node IPs | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
name: client-egress-to-cidr-cp-host | ||
spec: | ||
podSelector: | ||
matchLabels: | ||
kind: client | ||
egress: | ||
- to: | ||
{{- range .ControlPlaneCIDRs }} | ||
- ipBlock: | ||
cidr: {{.}} | ||
{{- end }} |
Oops, something went wrong.