Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
11fabd71
Commit
11fabd71
authored
Aug 22, 2016
by
Marcin Wielgus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scheduling algorithm provider flag in kube-up.sh
parent
a41e6e38
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
31 additions
and
7 deletions
+31
-7
common.sh
cluster/common.sh
+5
-0
config-default.sh
cluster/gce/config-default.sh
+3
-0
config-test.sh
cluster/gce/config-test.sh
+3
-0
configure-vm.sh
cluster/gce/configure-vm.sh
+5
-0
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+3
-0
configure-helper.sh
cluster/gce/trusty/configure-helper.sh
+4
-0
kube-scheduler.manifest
cluster/saltbase/salt/kube-scheduler/kube-scheduler.manifest
+7
-2
exceptions.txt
hack/verify-flags/exceptions.txt
+1
-5
No files found.
cluster/common.sh
View file @
11fabd71
...
...
@@ -761,6 +761,11 @@ EOF
DNS_ZONE_NAME:
$(
yaml-quote
${
DNS_ZONE_NAME
})
EOF
fi
if
[
-n
"
${
SCHEDULING_ALGORITHM_PROVIDER
:-}
"
]
;
then
cat
>>
$file
<<
EOF
SCHEDULING_ALGORITHM_PROVIDER:
$(
yaml-quote
${
SCHEDULING_ALGORITHM_PROVIDER
})
EOF
fi
}
function
sha1sum-file
()
{
...
...
cluster/gce/config-default.sh
View file @
11fabd71
...
...
@@ -160,3 +160,6 @@ E2E_STORAGE_TEST_ENVIRONMENT=${KUBE_E2E_STORAGE_TEST_ENVIRONMENT:-false}
# Evict pods whenever compute resource availability on the nodes gets below a threshold.
EVICTION_HARD
=
"
${
EVICTION_HARD
:-
memory
.available<100Mi,nodefs.available<10%
}
"
# Optional: custom scheduling algorithm
SCHEDULING_ALGORITHM_PROVIDER
=
"
${
SCHEDULING_ALGORITHM_PROVIDER
:-}
"
cluster/gce/config-test.sh
View file @
11fabd71
...
...
@@ -190,3 +190,6 @@ PREPULL_E2E_IMAGES="${PREPULL_E2E_IMAGES:-true}"
# Evict pods whenever compute resource availability on the nodes gets below a threshold.
EVICTION_HARD
=
"
${
EVICTION_HARD
:-
memory
.available<100Mi,nodefs.available<10%
}
"
# Optional: custom scheduling algorithm
SCHEDULING_ALGORITHM_PROVIDER
=
"
${
SCHEDULING_ALGORITHM_PROVIDER
:-}
"
cluster/gce/configure-vm.sh
View file @
11fabd71
...
...
@@ -579,6 +579,11 @@ EOF
federations_domain_map: ''
EOF
fi
if
[
-n
"
${
SCHEDULING_ALGORITHM_PROVIDER
:-}
"
]
;
then
cat
<<
EOF
>>/srv/salt-overlay/pillar/cluster-params.sls
scheduling_algorithm_provider: '
$(
echo
"
${
SCHEDULING_ALGORITHM_PROVIDER
}
"
|
sed
-e
"s/'/''/g"
)
'
EOF
fi
}
# The job of this function is simple, but the basic regular expression syntax makes
...
...
cluster/gce/gci/configure-helper.sh
View file @
11fabd71
...
...
@@ -809,6 +809,9 @@ function start-kube-scheduler {
if
[[
-n
"
${
FEATURE_GATES
:-}
"
]]
;
then
params+
=
" --feature-gates=
${
FEATURE_GATES
}
"
fi
if
[[
-n
"
${
SCHEDULING_ALGORITHM_PROVIDER
:-}
"
]]
;
then
params+
=
" --algorithm-provider=
${
SCHEDULING_ALGORITHM_PROVIDER
}
"
fi
local
-r
kube_scheduler_docker_tag
=
$(
cat
"
${
KUBE_HOME
}
/kube-docker-files/kube-scheduler.docker_tag"
)
# Remove salt comments and replace variables with values.
...
...
cluster/gce/trusty/configure-helper.sh
View file @
11fabd71
...
...
@@ -675,6 +675,10 @@ start_kube_scheduler() {
log_level
=
"
${
SCHEDULER_TEST_LOG_LEVEL
}
"
fi
params
=
"
${
log_level
}
${
SCHEDULER_TEST_ARGS
:-}
"
if
[
-n
"
${
SCHEDULING_ALGORITHM_PROVIDER
:-}
"
]
;
then
params
=
"
${
params
}
--algorithm-provider=
${
SCHEDULING_ALGORITHM_PROVIDER
}
"
fi
readonly
kube_scheduler_docker_tag
=
$(
cat
"
${
kube_home
}
/kube-docker-files/kube-scheduler.docker_tag"
)
# Remove salt comments and replace variables with values
...
...
cluster/saltbase/salt/kube-scheduler/kube-scheduler.manifest
View file @
11fabd71
...
...
@@ -7,10 +7,15 @@
{% set feature_gates = "" -%}
{% if grains.feature_gates is defined -%}
{% set feature_gates = "--feature-gates=" + grains.feature_gates -%}
{% set feature_gates = "--feature-gates=" + grains.feature_gates -%}
{% endif -%}
{% set params = params + log_level + " " + feature_gates -%}
{% set scheduling_algorithm_provider = "" -%}
{% if grains.scheduling_algorithm_provider is defined -%}
{% set scheduling_algorithm_provider = "--algorithm-provider=" + grains.scheduling_algorithm_provider -%}
{% endif -%}
{% set params = params + log_level + " " + feature_gates + " " + scheduling_algorithm_provider -%}
# test_args has to be kept at the end, so they'll overwrite any prior configuration
{% if pillar['scheduler_test_args'] is defined -%}
...
...
hack/verify-flags/exceptions.txt
View file @
11fabd71
...
...
@@ -50,7 +50,7 @@ cluster/saltbase/salt/kube-proxy/kube-proxy.manifest: {% set api_servers_with_p
cluster/saltbase/salt/kube-proxy/kube-proxy.manifest: {% set api_servers_with_port = api_servers -%}
cluster/saltbase/salt/kube-proxy/kube-proxy.manifest: {% set cluster_cidr=" --cluster-cidr=" + pillar['cluster_cidr'] %}
cluster/saltbase/salt/kube-proxy/kube-proxy.manifest:{% set params = log_level + " " + feature_gates + " " + test_args -%}
cluster/saltbase/salt/kube-scheduler/kube-scheduler.manifest:{% set params = params + log_level + " " + feature_gates -%}
cluster/saltbase/salt/kube-scheduler/kube-scheduler.manifest:{% set params = params + log_level + " " + feature_gates
+ " " + scheduling_algorithm_provider
-%}
cluster/saltbase/salt/kubelet/default: {% set api_servers_with_port = api_servers + ":6443" -%}
cluster/saltbase/salt/kubelet/default: {% set api_servers_with_port = api_servers -%}
cluster/saltbase/salt/kubelet/default: {% set enable_custom_metrics="--enable-custom-metrics=" + pillar['enable_custom_metrics'] %}
...
...
@@ -84,10 +84,6 @@ federation/config.default.json: "cluster_name": "cluster3-kubernetes",
federation/config.default.json: "num_nodes": 3,
federation/config.default.json: "num_nodes": 3,
federation/config.default.json: "num_nodes": 3,
hack/fed-up-cluster.sh: advertise_address="--advertise_address=${API_HOST}"
hack/fed-up-cluster.sh: runtime_config="--runtime-config=${RUNTIME_CONFIG}"
hack/fed-up-cluster.sh: advertise_address=""
hack/fed-up-cluster.sh: runtime_config=""
hack/local-up-cluster.sh: advertise_address="--advertise_address=${API_HOST}"
hack/local-up-cluster.sh: runtime_config="--runtime-config=${RUNTIME_CONFIG}"
hack/local-up-cluster.sh: advertise_address=""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment