Reputation: 61
As kubernetes 1.9 , all flags than --config are deprecated on kube-scheduler. So how to create config file ?
Upvotes: 3
Views: 2124
Reputation: 109
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
Upvotes: 4