1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 05:14:13 +01:00

Merge pull request #174 from mccare/documentation-compile-and-example-yaml

Documentation for compile and example yaml files for creation of kubernetes resources
This commit is contained in:
Kubernetes Prow Robot
2019-12-12 07:54:32 -08:00
committed by GitHub
3 changed files with 97 additions and 0 deletions

View File

@@ -26,6 +26,8 @@ but relies on the default scheduler for that.
## Build and Run
- Checkout the repo into your $GOPATH directory under src/github.com/kubernetes-incubator/descheduler
Build descheduler:
```sh
@@ -38,6 +40,8 @@ and run descheduler:
$ ./_output/bin/descheduler --kubeconfig <path to kubeconfig> --policy-config-file <path-to-policy-file>
```
If you want more information about what descheduler is doing add `-v 1` to the command line
For more information about available options run:
```
$ ./_output/bin/descheduler --help
@@ -155,6 +159,10 @@ the policy `policy-file` is mounted as a volume from the config map.
$ kubectl create -f descheduler-job.yaml
```
### Examples
See [descheduler.yaml](examples/descheduler.yaml) and [descheduler-job.yaml](examples/descheduler-job.yaml) for a combined yaml file of the above steps.
## Policy and Strategies
Descheduler's policy is configurable and includes strategies to be enabled or disabled.