mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-31 14:49:44 +00:00
This parameter controls which namespace the klipper-lb pods will be create.
It defaults to kube-system so that k3s does not by default create a new
namespace. It can be changed if users wish to isolate the pods and apply
some policy to them.
Signed-off-by: Darren Shepherd <darren@acorn.io>
(cherry picked from commit e6009b1edf)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
23 lines
492 B
Go
23 lines
492 B
Go
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/k3s-io/k3s/pkg/cli/cmds"
|
|
"github.com/k3s-io/k3s/pkg/daemons/config"
|
|
)
|
|
|
|
type Config struct {
|
|
DisableAgent bool
|
|
DisableServiceLB bool
|
|
ControlConfig config.Control
|
|
Rootless bool
|
|
ServiceLBNamespace string
|
|
SupervisorPort int
|
|
StartupHooks []cmds.StartupHook
|
|
LeaderControllers CustomControllers
|
|
Controllers CustomControllers
|
|
}
|
|
|
|
type CustomControllers []func(ctx context.Context, sc *Context) error
|