mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-08-04 17:09:51 +00:00
Refactor egress-selector pods mode to watch pods
Watching pods appears to be the most reliable way to ensure that the proxy routes and authorizes connections. Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
committed by
Brad Davidson
parent
8456d98283
commit
15b8fb962a
@@ -30,8 +30,17 @@ const (
|
||||
EgressSelectorModeDisabled = "disabled"
|
||||
EgressSelectorModePod = "pod"
|
||||
CertificateRenewDays = 90
|
||||
StreamServerPort = "10010"
|
||||
KubeletPort = "10250"
|
||||
)
|
||||
|
||||
// These ports can always be accessed via the tunnel server, at the loopback address.
|
||||
// Other addresses and ports are only accessible via the tunnel on newer agents, when used by a pod.
|
||||
var KubeletReservedPorts = map[string]bool{
|
||||
StreamServerPort: true,
|
||||
KubeletPort: true,
|
||||
}
|
||||
|
||||
type Node struct {
|
||||
Docker bool
|
||||
ContainerRuntimeEndpoint string
|
||||
|
||||
Reference in New Issue
Block a user