Skip to content

Commit

Permalink
add example config for podState plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
lianghao208 committed Jul 26, 2021
1 parent 3f705f7 commit 6239792
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
12 changes: 12 additions & 0 deletions manifests/podstate/scheduler-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: kubescheduler.config.k8s.io/v1beta1
kind: KubeSchedulerConfiguration
leaderElection:
leaderElect: false
clientConnection:
kubeconfig: "REPLACE_ME_WITH_KUBE_CONFIG_PATH"
profiles:
- schedulerName: default-scheduler
plugins:
score:
enabled:
- name: PodState
17 changes: 17 additions & 0 deletions pkg/podstate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,20 @@ This is a score plugin that takes terminating and nominated Pods into accounts i
- the nodes that have more terminating Pods will get a higher score as those terminating Pods would be physically removed eventually from nodes
- the nodes that have more nominated Pods (which carry .status.nominatedNodeName) will get a lower score as the nominated nodes are supposed to accommodate some preemptor pod in a
future scheduling cycle.

## Example config:

```yaml
apiVersion: kubescheduler.config.k8s.io/v1beta1
kind: KubeSchedulerConfiguration
leaderElection:
leaderElect: false
clientConnection:
kubeconfig: "REPLACE_ME_WITH_KUBE_CONFIG_PATH"
profiles:
- schedulerName: default-scheduler
plugins:
score:
enabled:
- name: PodState
```

0 comments on commit 6239792

Please sign in to comment.