forked from kubernetes-sigs/kube-scheduler-simulator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create the component config.(kubernetes-sigs#245)
Create the component config in simulator. Signed-off-by: yanghesong <hesong.yang@foxmail.com>
- Loading branch information
1 parent
3c90c5e
commit a129606
Showing
5 changed files
with
130 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Configuration file for scheduler-simulator | ||
|
||
# This is an example config for scheduler-simulator. | ||
|
||
# This is the port number on which kube-scheduler-simulator | ||
# server is started. | ||
port: 1212 | ||
|
||
# This is the URL for etcd. The simulator runs kube-apiserver | ||
# internally, and the kube-apiserver uses this etcd. | ||
etcd-url: "http://127.0.0.1:2379" | ||
|
||
# This URL represents the URL once web UI is started. | ||
# The simulator and internal kube-apiserver set the allowed | ||
# origin for CorsAllowedOriginList | ||
cors-allowed-origin-list: | ||
- "http://localhost:3000" | ||
|
||
# This is for the beta feature "Existing cluster Importing". | ||
# This variable is used to find Kubeconfig required to access your | ||
# cluster for importing resources to scheduler simulator. | ||
kube-config: "" | ||
|
||
# This is the host of kube-apiserver which the simulator | ||
# starts internally. Its default value is 127.0.0.1. | ||
kube-api-host: "127.0.0.1" | ||
|
||
# TThis is the port of kube-apiserver. Its default value is 3131. | ||
kube-api-port: 3131 | ||
|
||
|
||
# The path to a KubeSchedulerConfiguration file. | ||
# If passed, the simulator will start the scheduler | ||
# with that configuration. Or, if you use web UI, | ||
# you can change the configuration from the web UI as well. | ||
kube-scheduler-config-path: "" | ||
|
||
# This variable indicates whether the simulator will | ||
# import resources from an existing cluster or not. | ||
# Note, this is still a beta feature. | ||
external-import-enabled: false | ||
|
||
# This variable indicates whether an external scheduler | ||
# is used. | ||
external-scheduler-enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters