Usage:"(cluster) Token to use for authentication",
EnvVar:version.ProgramUpper+"_TOKEN",
Destination:&AgentConfig.Token,
}
NodeIPFlag=cli.StringSliceFlag{
NodeIPFlag=&cli.StringSliceFlag{
Name:"node-ip,i",
Usage:"(agent/networking) IPv4/IPv6 addresses to advertise for node",
Value:&AgentConfig.NodeIP,
}
NodeExternalIPFlag=cli.StringSliceFlag{
NodeExternalIPFlag=&cli.StringSliceFlag{
Name:"node-external-ip",
Usage:"(agent/networking) IPv4/IPv6 external IP addresses to advertise for node",
Value:&AgentConfig.NodeExternalIP,
}
NodeNameFlag=cli.StringFlag{
NodeNameFlag=&cli.StringFlag{
Name:"node-name",
Usage:"(agent/node) Node name",
EnvVar:version.ProgramUpper+"_NODE_NAME",
Destination:&AgentConfig.NodeName,
}
WithNodeIDFlag=cli.BoolFlag{
WithNodeIDFlag=&cli.BoolFlag{
Name:"with-node-id",
Usage:"(agent/node) Append id to node name",
Destination:&AgentConfig.WithNodeID,
}
ProtectKernelDefaultsFlag=cli.BoolFlag{
ProtectKernelDefaultsFlag=&cli.BoolFlag{
Name:"protect-kernel-defaults",
Usage:"(agent/node) Kernel tuning behavior. If set, error if kernel tunables are different than kubelet defaults.",
Destination:&AgentConfig.ProtectKernelDefaults,
}
SELinuxFlag=cli.BoolFlag{
SELinuxFlag=&cli.BoolFlag{
Name:"selinux",
Usage:"(agent/node) Enable SELinux in containerd",
Destination:&AgentConfig.EnableSELinux,
EnvVar:version.ProgramUpper+"_SELINUX",
}
LBServerPortFlag=cli.IntFlag{
LBServerPortFlag=&cli.IntFlag{
Name:"lb-server-port",
Usage:"(agent/node) Local port for supervisor client load-balancer. If the supervisor and apiserver are not colocated an additional port 1 less than this port will also be used for the apiserver client load-balancer.",
Destination:&AgentConfig.LBServerPort,
EnvVar:version.ProgramUpper+"_LB_SERVER_PORT",
Value:6444,
}
DockerFlag=cli.BoolFlag{
DockerFlag=&cli.BoolFlag{
Name:"docker",
Usage:"(agent/runtime) (experimental) Use cri-dockerd instead of containerd",
Destination:&AgentConfig.Docker,
}
CRIEndpointFlag=cli.StringFlag{
CRIEndpointFlag=&cli.StringFlag{
Name:"container-runtime-endpoint",
Usage:"(agent/runtime) Disable embedded containerd and use the CRI socket at the given path; when used with --docker this sets the docker socket path",
Usage:"(listener) IPv4 address that apiserver uses to advertise to members of the cluster (default: node-external-ip/node-ip)",
Destination:&ServerConfig.AdvertiseIP,
},
cli.IntFlag{
&cli.IntFlag{
Name:"advertise-port",
Usage:"(listener) Port that apiserver uses to advertise to members of the cluster (default: listen-port)",
Destination:&ServerConfig.AdvertisePort,
},
cli.StringSliceFlag{
&cli.StringSliceFlag{
Name:"tls-san",
Usage:"(listener) Add additional hostnames or IPv4/IPv6 addresses as Subject Alternative Names on the server TLS cert",
Value:&ServerConfig.TLSSan,
@ -206,78 +206,78 @@ var ServerFlags = []cli.Flag{
ServiceNodePortRange,
ClusterDNS,
ClusterDomain,
cli.StringFlag{
&cli.StringFlag{
Name:"flannel-backend",
Usage:"(networking) backend<=option1=val1,option2=val2> where backend is one of 'none', 'vxlan', 'ipsec' (deprecated), 'host-gw', 'wireguard-native', 'wireguard' (deprecated)",
Destination:&ServerConfig.FlannelBackend,
Value:"vxlan",
},
cli.BoolFlag{
&cli.BoolFlag{
Name:"flannel-ipv6-masq",
Usage:"(networking) Enable IPv6 masquerading for pod",
Destination:&ServerConfig.FlannelIPv6Masq,
},
cli.BoolFlag{
&cli.BoolFlag{
Name:"flannel-external-ip",
Usage:"(networking) Use node external IP addresses for Flannel traffic",
Destination:&ServerConfig.FlannelExternalIP,
},
cli.StringFlag{
&cli.StringFlag{
Name:"egress-selector-mode",
Usage:"(networking) One of 'agent', 'cluster', 'pod', 'disabled'",
Destination:&ServerConfig.EgressSelectorMode,
Value:"agent",
},
cli.StringFlag{
&cli.StringFlag{
Name:"servicelb-namespace",
Usage:"(networking) Namespace of the pods for the servicelb component",
Destination:&ServerConfig.ServiceLBNamespace,
Value:"kube-system",
},
cli.StringFlag{
&cli.StringFlag{
Name:"write-kubeconfig,o",
Usage:"(client) Write kubeconfig for admin client to this file",
Destination:&ServerConfig.KubeConfigOutput,
EnvVar:version.ProgramUpper+"_KUBECONFIG_OUTPUT",
},
cli.StringFlag{
&cli.StringFlag{
Name:"write-kubeconfig-mode",
Usage:"(client) Write kubeconfig with this mode",
Destination:&ServerConfig.KubeConfigMode,
EnvVar:version.ProgramUpper+"_KUBECONFIG_MODE",
},
ServerToken,
cli.StringFlag{
&cli.StringFlag{
Name:"token-file",
Usage:"(cluster) File containing the token",
Destination:&ServerConfig.TokenFile,
EnvVar:version.ProgramUpper+"_TOKEN_FILE",
},
cli.StringFlag{
&cli.StringFlag{
Name:"agent-token",
Usage:"(cluster) Shared secret used to join agents to the cluster, but not servers",
Destination:&ServerConfig.AgentToken,
EnvVar:version.ProgramUpper+"_AGENT_TOKEN",
},
cli.StringFlag{
&cli.StringFlag{
Name:"agent-token-file",
Usage:"(cluster) File containing the agent secret",
Destination:&ServerConfig.AgentTokenFile,
EnvVar:version.ProgramUpper+"_AGENT_TOKEN_FILE",
},
cli.StringFlag{
&cli.StringFlag{
Name:"server,s",
Usage:"(cluster) Server to connect to, used to join a cluster",
EnvVar:version.ProgramUpper+"_URL",
Destination:&ServerConfig.ServerURL,
},
cli.BoolFlag{
&cli.BoolFlag{
Name:"cluster-init",
Usage:"(cluster) Initialize a new cluster using embedded Etcd",
EnvVar:version.ProgramUpper+"_CLUSTER_INIT",
Destination:&ServerConfig.ClusterInit,
},
cli.BoolFlag{
&cli.BoolFlag{
Name:"cluster-reset",
Usage:"(cluster) Forget all peers and become sole member of a new cluster",
EnvVar:version.ProgramUpper+"_CLUSTER_RESET",
@ -292,30 +292,30 @@ var ServerFlags = []cli.Flag{
ExtraEtcdArgs,
ExtraControllerArgs,
ExtraSchedulerArgs,
cli.StringSliceFlag{
&cli.StringSliceFlag{
Name:"kube-cloud-controller-manager-arg",
Usage:"(flags) Customized flag for kube-cloud-controller-manager process",
Value:&ServerConfig.ExtraCloudControllerArgs,
},
cli.StringFlag{
&cli.StringFlag{
Name:"datastore-endpoint",
Usage:"(db) Specify etcd, Mysql, Postgres, or Sqlite (default) data source name",