mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Update kubemark to use EndpointSlices and proper user-agents
This commit is contained in:
parent
aff056d8a1
commit
243f4faa6d
@ -180,12 +180,13 @@ func run(cmd *cobra.Command, config *hollowNodeConfig) error {
|
||||
return fmt.Errorf("Failed to create a ClientConfig, error: %w. Exiting", err)
|
||||
}
|
||||
|
||||
if config.Morph == "kubelet" {
|
||||
clientConfig.UserAgent = "hollow-kubelet"
|
||||
client, err := clientset.NewForConfig(clientConfig)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Failed to create a ClientSet, error: %w. Exiting", err)
|
||||
}
|
||||
|
||||
if config.Morph == "kubelet" {
|
||||
f, c := kubemark.GetHollowKubeletConfig(config.createHollowKubeletOptions())
|
||||
|
||||
heartbeatClientConfig := *clientConfig
|
||||
@ -253,6 +254,8 @@ func run(cmd *cobra.Command, config *hollowNodeConfig) error {
|
||||
}
|
||||
|
||||
if config.Morph == "proxy" {
|
||||
clientConfig.UserAgent = "hollow-proxy"
|
||||
|
||||
client, err := clientset.NewForConfig(clientConfig)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Failed to create API Server client, error: %w", err)
|
||||
|
@ -126,6 +126,7 @@ func NewHollowProxyOrDie(
|
||||
Recorder: recorder,
|
||||
ProxyMode: "fake",
|
||||
NodeRef: nodeRef,
|
||||
UseEndpointSlices: true,
|
||||
OOMScoreAdj: utilpointer.Int32Ptr(0),
|
||||
ConfigSyncPeriod: 30 * time.Second,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user