Added some initial daemonsets

This commit is contained in:
2026-04-01 22:55:22 +08:00
parent 3e6df38f45
commit 145b0a4662
12 changed files with 415 additions and 16 deletions

View File

@@ -23,8 +23,9 @@ type TemplateValues struct {
ContainerRuntimeEndpoint string
CNIPlugin string
ClusterRole string // worker, control-plane
InitControlPlane bool
ClusterRole string // worker, control-plane
InitControlPlane bool
EnableControlAgent bool
AllowSchedulingOnControlPlane bool
SkipImageCheck bool
@@ -57,8 +58,9 @@ func defaultTemplateValues() TemplateValues {
ContainerRuntimeEndpoint: "unix:///var/run/crio/crio.sock",
CNIPlugin: "default",
InitControlPlane: true,
ClusterRole: "control-plane",
ClusterRole: "control-plane",
InitControlPlane: true,
EnableControlAgent: true,
AllowSchedulingOnControlPlane: true,
SkipImageCheck: false,
@@ -103,8 +105,9 @@ func LoadTemplateValuesFromEnv() TemplateValues {
v.ContainerRuntimeEndpoint = getenvDefault("MKS_CONTAINER_RUNTIME_ENDPOINT", v.ContainerRuntimeEndpoint)
v.CNIPlugin = getenvDefault("MKS_CNI_PLUGIN", v.CNIPlugin)
v.InitControlPlane = getenvBoolDefault("MKS_INIT_CONTROL_PLANE", v.InitControlPlane)
v.ClusterRole = getenvDefault("MKS_CLUSTER_ROLE", v.ClusterRole)
v.InitControlPlane = getenvBoolDefault("MKS_INIT_CONTROL_PLANE", v.InitControlPlane)
v.EnableControlAgent = getenvBoolDefault("MKS_ENABLE_CONTROL_AGENT", v.EnableControlAgent)
v.AllowSchedulingOnControlPlane = getenvBoolDefault("MKS_ALLOW_SCHEDULING_ON_CONTROL_PLANE", v.AllowSchedulingOnControlPlane)
v.SkipImageCheck = getenvBoolDefault("MKS_SKIP_IMAGE_CHECK", v.SkipImageCheck)