Allow scheduling of pods on Kubernetes master?

前端 未结 8 832
逝去的感伤
逝去的感伤 2020-12-03 06:54

I set up Kubernetes on CoreOS on bare metal using the generic install scripts. It\'s running the current stable release, 1298.6.0, with Kubernetes version 1.5.4.

We\

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-03 07:32

    Since Openshift 4.x CoreOs is directly integrated on Kubernetes configuration (you can make all masters schedulable this way

    # edit the field spec.mastersSchedulable to set a value true
    $ oc patch schedulers.config.openshift.io cluster --type json \
         -p '[{"op": "add", "path": "/spec/mastersSchedulable", "value": true}]'
    

    or using

    oc edit schedulers.config.openshift.io cluster 
    

    and edit the field

    spec:
        mastersSchedulable: true
    

提交回复
热议问题