mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #73393 from ingvagabund/kubemark-providerid
Set ProviderID when running kubemark node
This commit is contained in:
commit
b8e8130a91
@ -17,6 +17,7 @@ limitations under the License.
|
|||||||
package kubemark
|
package kubemark
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
@ -118,6 +119,7 @@ func GetHollowKubeletConfig(
|
|||||||
f.MaxPerPodContainerCount = 2
|
f.MaxPerPodContainerCount = 2
|
||||||
f.RegisterNode = true
|
f.RegisterNode = true
|
||||||
f.RegisterSchedulable = true
|
f.RegisterSchedulable = true
|
||||||
|
f.ProviderID = fmt.Sprintf("kubemark://%v", nodeName)
|
||||||
|
|
||||||
// Config struct
|
// Config struct
|
||||||
c, err := options.NewKubeletConfiguration()
|
c, err := options.NewKubeletConfiguration()
|
||||||
|
Loading…
Reference in New Issue
Block a user