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
b7d72ef3
Commit
b7d72ef3
authored
Feb 07, 2016
by
Marcin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Startup scripts for custom metrics
parent
808209de
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
1 deletion
+18
-1
common.sh
cluster/common.sh
+5
-0
configure-vm.sh
cluster/gce/configure-vm.sh
+5
-0
default
cluster/saltbase/salt/kubelet/default
+6
-1
exceptions.txt
hack/verify-flags/exceptions.txt
+2
-0
No files found.
cluster/common.sh
View file @
b7d72ef3
...
...
@@ -545,6 +545,11 @@ EOF
KUBELET_TEST_LOG_LEVEL:
$(
yaml-quote
${
KUBELET_TEST_LOG_LEVEL
})
EOF
fi
if
[
-n
"
${
ENABLE_CUSTOM_METRICS
:-}
"
]
;
then
cat
>>
$file
<<
EOF
ENABLE_CUSTOM_METRICS:
$(
yaml-quote
${
ENABLE_CUSTOM_METRICS
})
EOF
fi
if
[[
"
${
master
}
"
==
"true"
]]
;
then
# Master-only env vars.
cat
>>
$file
<<
EOF
...
...
cluster/gce/configure-vm.sh
View file @
b7d72ef3
...
...
@@ -395,6 +395,11 @@ EOF
terminated_pod_gc_threshold: '
$(
echo
"
${
TERMINATED_POD_GC_THRESHOLD
}
"
|
sed
-e
"s/'/''/g"
)
'
EOF
fi
if
[
-n
"
${
ENABLE_CUSTOM_METRICS
:-}
"
]
;
then
cat
<<
EOF
>>/srv/salt-overlay/pillar/cluster-params.sls
enable_custom_metrics: '
$(
echo
"
${
ENABLE_CUSTOM_METRICS
}
"
|
sed
-e
"s/'/''/g"
)
'
EOF
fi
}
# The job of this function is simple, but the basic regular expression syntax makes
...
...
cluster/saltbase/salt/kubelet/default
View file @
b7d72ef3
...
...
@@ -163,5 +163,10 @@
{% set log_level = pillar['kubelet_test_log_level'] -%}
{% endif -%}
{% set enable_custom_metrics = "" -%}
{% if pillar['enable_custom_metrics'] is defined -%}
{% set enable_custom_metrics="--enable-custom-metrics=" + pillar['enable_custom_metrics'] %}
{% endif -%}
# test_args has to be kept at the end, so they'll overwrite any prior configuration
DAEMON_ARGS="{{daemon_args}} {{api_servers_with_port}} {{debugging_handlers}} {{hostname_override}} {{cloud_provider}} {{config}} {{manifest_url}} --allow-privileged={{pillar['allow_privileged']}} {{log_level}} {{cluster_dns}} {{cluster_domain}} {{docker_root}} {{kubelet_root}} {{configure_cbr0}} {{non_masquerade_cidr}} {{cgroup_root}} {{system_container}} {{pod_cidr}} {{ master_kubelet_args }} {{cpu_cfs_quota}} {{network_plugin}} {{kubelet_port}} {{experimental_flannel_overlay}} {{ reconcile_cidr_args }} {{ configure_hairpin_mode }} {{test_args}}"
DAEMON_ARGS="{{daemon_args}} {{api_servers_with_port}} {{debugging_handlers}} {{hostname_override}} {{cloud_provider}} {{config}} {{manifest_url}} --allow-privileged={{pillar['allow_privileged']}} {{log_level}} {{cluster_dns}} {{cluster_domain}} {{docker_root}} {{kubelet_root}} {{configure_cbr0}} {{non_masquerade_cidr}} {{cgroup_root}} {{system_container}} {{pod_cidr}} {{ master_kubelet_args }} {{cpu_cfs_quota}} {{network_plugin}} {{kubelet_port}} {{experimental_flannel_overlay}} {{ reconcile_cidr_args }} {{ configure_hairpin_mode }} {{
enable_custom_metrics}} {{
test_args}}"
hack/verify-flags/exceptions.txt
View file @
b7d72ef3
...
...
@@ -5,6 +5,7 @@ cluster/aws/templates/configure-vm-aws.sh: # We set the hostname_override to th
cluster/aws/templates/configure-vm-aws.sh: api_servers: '${API_SERVERS}'
cluster/aws/templates/configure-vm-aws.sh: env-to-grains "hostname_override"
cluster/aws/templates/configure-vm-aws.sh: env-to-grains "runtime_config"
cluster/aws/templates/salt-minion.sh:# We set the hostname_override to the full EC2 private dns name
cluster/centos/util.sh: local node_ip=${node#*@}
cluster/gce/configure-vm.sh: advertise_address: '${EXTERNAL_IP}'
cluster/gce/configure-vm.sh: api_servers: '${KUBERNETES_MASTER_NAME}'
...
...
@@ -59,6 +60,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/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'] %}
cluster/saltbase/salt/kubelet/default: {% set kubelet_port="--port=" + pillar['kubelet_port'] %}
cluster/saltbase/salt/opencontrail-networking-master/init.sls: - 'SERVICE_CLUSTER_IP_RANGE': '{{ pillar.get('service_cluster_ip_range') }}'
cluster/saltbase/salt/opencontrail-networking-minion/init.sls: - 'SERVICE_CLUSTER_IP_RANGE': '{{ pillar.get('service_cluster_ip_range') }}'
...
...
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