3

As kubernetes 1.9 , all flags than --config are deprecated on kube-scheduler. So how to create config file ?

2

1 Answer 1

4

Building from tip and using --write-config-to yields a sample config file. Examining it, it's a yaml file using KubeSchedulerConfig as the schema.

Sample config (no other flags specified):

algorithmSource: provider: DefaultProvider apiVersion: componentconfig/v1alpha1 clientConnection: acceptContentTypes: "" burst: 100 contentType: application/vnd.kubernetes.protobuf kubeconfig: "" qps: 50 disablePreemption: false enableContentionProfiling: false enableProfiling: false failureDomains: kubernetes.io/hostname,failure-domain.beta.kubernetes.io/zone,failure-domain.beta.kubernetes.io/region hardPodAffinitySymmetricWeight: 1 healthzBindAddress: 0.0.0.0:10251 kind: KubeSchedulerConfiguration leaderElection: leaderElect: true leaseDuration: 15s lockObjectName: kube-scheduler lockObjectNamespace: kube-system renewDeadline: 10s resourceLock: endpoints retryPeriod: 2s metricsBindAddress: 0.0.0.0:10251 schedulerName: default-scheduler 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.