Skip to content

Commit

Permalink
kubernetes: allow kubelet to connect all TCP ports
Browse files Browse the repository at this point in the history
For pod health checks.

Signed-off-by: Kenton Groombridge <[email protected]>
  • Loading branch information
0xC0ncord committed Aug 16, 2024
1 parent 9ab94df commit 2b8fa2b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions policy/modules/services/kubernetes.te
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,8 @@ fs_tmpfs_filetrans(kubelet_t, kubernetes_tmpfs_t, { dir file lnk_file })

corenet_tcp_bind_generic_node(kubelet_t)

corenet_tcp_connect_http_port(kubelet_t)
corenet_tcp_bind_kubernetes_port(kubelet_t)
corenet_tcp_connect_kubernetes_port(kubelet_t)
corenet_tcp_connect_all_unreserved_ports(kubelet_t)
corenet_tcp_connect_all_ports(kubelet_t)

corecmd_exec_bin(kubelet_t)
corecmd_watch_bin_dirs(kubelet_t)
Expand Down

0 comments on commit 2b8fa2b

Please sign in to comment.