Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apr 2023 #8

Closed
vadasambar opened this issue Apr 3, 2023 · 21 comments
Closed

Apr 2023 #8

vadasambar opened this issue Apr 3, 2023 · 21 comments

Comments

@vadasambar
Copy link
Contributor

Last month's thread:
Mar 2023: #7

What

This is an issue to update daily status on what I am doing as a member of vadafoss community.

How

Follow this format

## <3-letter-month> <2-letter-day> <4-letter-year>
### やったこと
### Problem
### Try
### TODO
### WIP

やったこと: yatta-koto lit. 'things I did' in Japanese (I just find it sounds closer to what I want to say)
Problem (optional): problems I faced
Try (optional): what I am trying
TODO (optional): things to do
WIP (optional): work in progress

@vadasambar
Copy link
Contributor Author

vadasambar commented Apr 4, 2023

Apr 4 2023

やったこと

WIP

  • plan for the month

TODO

Problem

@vadasambar
Copy link
Contributor Author

Apr 5 2023

やったこと

WIP

  • plan for the month

TODO

Problem

@vadasambar
Copy link
Contributor Author

vadasambar commented Apr 6, 2023

Apr 6 2023

やったこと

WIP

  • plan for the month

TODO

Problem

@vadasambar
Copy link
Contributor Author

vadasambar commented Apr 12, 2023

Apr 12 2023

やったこと

WIP

TODO

Problem

@vadasambar
Copy link
Contributor Author

vadasambar commented Apr 13, 2023

Apr 13 2023

やったこと

WIP

TODO

Problem

@vadasambar
Copy link
Contributor Author

vadasambar commented Apr 17, 2023

Apr 17 2023

やったこと

WIP

TODO

Problem

@vadasambar
Copy link
Contributor Author

vadasambar commented Apr 18, 2023

Apr 18 2023

やったこと

WIP

  • understand when extenders are called in scheduler. Are they part of extention points?

TODO

Problem

@vadasambar
Copy link
Contributor Author

vadasambar commented Apr 19, 2023

Apr 19 2023

やったこと

WIP

TODO

Problem

@vadasambar
Copy link
Contributor Author

Found the culprit. It's happening in the scheme's library.

File: ../../../go/pkg/mod/k8s.io/kubernetes@v1.27.0-alpha.1/pkg/scheduler/apis/config/v1/default_plugins.go
29: // getDefaultPlugins returns the default set of plugins.
30: func getDefaultPlugins() *v1.Plugins {
31: 	plugins := &v1.Plugins{
32: 		MultiPoint: v1.PluginSet{
33: 			Enabled: []v1.Plugin{
34: 				{Name: names.PrioritySort},
35: 				{Name: names.NodeUnschedulable},
36: 				{Name: names.NodeName},
37: 				{Name: names.TaintToleration, Weight: pointer.Int32(3)},
38: 				{Name: names.NodeAffinity, Weight: pointer.Int32(2)},
39: 				{Name: names.NodePorts},
40: 				{Name: names.NodeResourcesFit, Weight: pointer.Int32(1)},
41: 				{Name: names.VolumeRestrictions},
42: 				{Name: names.EBSLimits},
43: 				{Name: names.GCEPDLimits},
44: 				{Name: names.NodeVolumeLimits},
45: 				{Name: names.AzureDiskLimits},
46: 				{Name: names.VolumeBinding},
47: 				{Name: names.VolumeZone},
48: 				{Name: names.PodTopologySpread, Weight: pointer.Int32(2)},
49: 				{Name: names.InterPodAffinity, Weight: pointer.Int32(2)},
50: 				{Name: names.DefaultPreemption},
51: 				{Name: names.NodeResourcesBalancedAllocation, Weight: pointer.Int32(1)},
52: 				{Name: names.ImageLocality, Weight: pointer.Int32(1)},
53: 				{Name: names.DefaultBinder},
54: 			},
55: 		},
56: 	}

https://github.com/kubernetes/kubernetes/blob/8d18ae6fc245deb68534cab608056c5aae9160bd/pkg/scheduler/apis/config/v1beta3/default_plugins.go#L29-L56

File: pkg/scheduler/apis/config/v1/defaults.go
69: func setDefaults_KubeSchedulerProfile(logger klog.Logger, prof *configv1.KubeSchedulerProfile) {
70: 	// Set default plugins.
71: 	prof.Plugins = mergePlugins(logger, getDefaultPlugins(), prof.Plugins)
72: 	// Set default plugin configs.

https://github.com/kubernetes/kubernetes/blob/8d18ae6fc245deb68534cab608056c5aae9160bd/pkg/scheduler/apis/config/v1/defaults.go#L71

File: pkg/scheduler/apis/config/v1/defaults.go
104: // SetDefaults_KubeSchedulerConfiguration sets additional defaults
105: func SetDefaults_KubeSchedulerConfiguration(obj *configv1.KubeSchedulerConfiguration) {
...
119: 
120: 	// Add the default set of plugins and apply the configuration.
121: 	for i := range obj.Profiles {
122: 		prof := &obj.Profiles[i]
123: 		setDefaults_KubeSchedulerProfile(logger, prof)
124: 	}

https://github.com/kubernetes/kubernetes/blob/8d18ae6fc245deb68534cab608056c5aae9160bd/pkg/scheduler/apis/config/v1/defaults.go#L104-L124

File: pkg/scheduler/apis/config/v1/zz_generated.defaults.go
29: // RegisterDefaults adds defaulters functions to the given scheme.
30: // Public to allow building arbitrary schemes.
31: // All generated defaulters are covering - they call all nested defaulters.
32: func RegisterDefaults(scheme *runtime.Scheme) error {
...
35: 	scheme.AddTypeDefaultingFunc(&v1.KubeSchedulerConfiguration{}, func(obj interface{}) {
36: 		SetObjectDefaults_KubeSchedulerConfiguration(obj.(*v1.KubeSchedulerConfiguration))
37: 	})
...
45: }
...
55: func SetObjectDefaults_KubeSchedulerConfiguration(in *v1.KubeSchedulerConfiguration) {
56: 	SetDefaults_KubeSchedulerConfiguration(in)
57: }

https://github.com/kubernetes/kubernetes/blob/02f77a1b84c232c6304ea89bb7f518d3984e202e/pkg/scheduler/apis/config/v1/zz_generated.defaults.go#L29-L57

File: pkg/scheduler/apis/config/v1/defaults.go
37: func addDefaultingFuncs(scheme *runtime.Scheme) error {
38: 	return RegisterDefaults(scheme)
39: }

https://github.com/kubernetes/kubernetes/blob/8d18ae6fc245deb68534cab608056c5aae9160bd/pkg/scheduler/apis/config/v1/defaults.go#L37-L39

File: pkg/scheduler/apis/config/v1/register.go
41: 	localSchemeBuilder.Register(addDefaultingFuncs)

https://github.com/kubernetes/kubernetes/blob/02f77a1b84c232c6304ea89bb7f518d3984e202e/pkg/scheduler/apis/config/v1/register.go#L41

File: pkg/scheduler/apis/config/scheme/scheme.go
File: ../../../go/pkg/mod/k8s.io/kubernetes@v1.27.0-alpha.1/pkg/scheduler/apis/config/scheme/scheme.go
29: var (
30: 	// Scheme is the runtime.Scheme to which all kubescheduler api types are registered.
31: 	Scheme = runtime.NewScheme()
32: 
33: 	// Codecs provides access to encoding and decoding for the scheme.
34: 	Codecs = serializer.NewCodecFactory(Scheme, serializer.EnableStrict)
35: )
36: 
37: func init() {
38: 	AddToScheme(Scheme)
39: }
40: 
41: // AddToScheme builds the kubescheduler scheme using all known versions of the kubescheduler api.
42: func AddToScheme(scheme *runtime.Scheme) {
43: 	utilruntime.Must(config.AddToScheme(scheme))
44: 	utilruntime.Must(configv1beta2.AddToScheme(scheme))
45: 	utilruntime.Must(configv1beta3.AddToScheme(scheme))
46: 	utilruntime.Must(configv1.AddToScheme(scheme))
47: 	utilruntime.Must(scheme.SetVersionPriority(
48: 		configv1.SchemeGroupVersion,
49: 		configv1beta3.SchemeGroupVersion,
50: 		configv1beta2.SchemeGroupVersion,
51: 	))
52: }

https://github.com/kubernetes/kubernetes/blob/02f77a1b84c232c6304ea89bb7f518d3984e202e/pkg/scheduler/apis/config/scheme/scheme.go#L29-L52

@vadasambar
Copy link
Contributor Author

vadasambar commented Apr 20, 2023

Apr 20 2023

やったこと

WIP

TODO

Problem

@vadasambar
Copy link
Contributor Author

vadasambar commented Apr 21, 2023

@vadasambar
Copy link
Contributor Author

vadasambar commented Apr 24, 2023

@vadasambar
Copy link
Contributor Author

vadasambar commented Apr 26, 2023

Apr 26 2023

やったこと

WIP

TODO

Problem

@vadasambar
Copy link
Contributor Author

@vadasambar
Copy link
Contributor Author

vadasambar commented Apr 28, 2023

Apr 28 2023

やったこと

WIP

TODO

Problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant