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
b7512d9c
Commit
b7512d9c
authored
Nov 06, 2016
by
Kubernetes Submit Queue
Committed by
GitHub
Nov 06, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #36240 from wojtek-t/quota_bytes_backend
Automatic merge from submit-queue Increase quota-bytes for etcd in v3 mode Ref #20504
parents
835bc1b9
ca99cbca
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
2 deletions
+17
-2
common.sh
cluster/common.sh
+1
-1
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+5
-0
configure-helper.sh
cluster/gce/trusty/configure-helper.sh
+5
-0
etcd.manifest
cluster/saltbase/salt/etcd/etcd.manifest
+5
-1
exceptions.txt
hack/verify-flags/exceptions.txt
+1
-0
No files found.
cluster/common.sh
View file @
b7512d9c
...
...
@@ -699,7 +699,7 @@ ENABLE_MANIFEST_URL: $(yaml-quote ${ENABLE_MANIFEST_URL:-false})
MANIFEST_URL:
$(
yaml-quote
${
MANIFEST_URL
:-})
MANIFEST_URL_HEADER:
$(
yaml-quote
${
MANIFEST_URL_HEADER
:-})
NUM_NODES:
$(
yaml-quote
${
NUM_NODES
})
STORAGE_BACKEND:
$(
yaml-quote
${
STORAGE_BACKEND
:-})
STORAGE_BACKEND:
$(
yaml-quote
${
STORAGE_BACKEND
:-
etcd2
})
ENABLE_GARBAGE_COLLECTOR:
$(
yaml-quote
${
ENABLE_GARBAGE_COLLECTOR
:-})
EOF
# ETCD_IMAGE (if set) allows to use a custom etcd image.
...
...
cluster/gce/gci/configure-helper.sh
View file @
b7512d9c
...
...
@@ -625,6 +625,11 @@ function prepare-etcd-manifest {
sed
-i
-e
"s@{{ *hostname *}}@
$host_name
@g"
"
${
temp_file
}
"
sed
-i
-e
"s@{{ *etcd_cluster *}}@
$etcd_cluster
@g"
"
${
temp_file
}
"
sed
-i
-e
"s@{{ *storage_backend *}}@
${
STORAGE_BACKEND
:-}
@g"
"
${
temp_file
}
"
if
[[
"
${
STORAGE_BACKEND
:-}
"
==
"etcd3"
]]
;
then
sed
-i
-e
"s@{{ *quota_bytes *}}@--quota-backend-bytes=4294967296@g"
"
${
temp_file
}
"
else
sed
-i
-e
"s@{{ *quota_bytes *}}@@g"
"
${
temp_file
}
"
fi
sed
-i
-e
"s@{{ *cluster_state *}}@
$cluster_state
@g"
"
${
temp_file
}
"
if
[[
-n
"
${
ETCD_IMAGE
:-}
"
]]
;
then
sed
-i
-e
"s@{{ *pillar
\.
get('etcd_docker_tag', '
\(
.*
\)
') *}}@
${
ETCD_IMAGE
}
@g"
"
${
temp_file
}
"
...
...
cluster/gce/trusty/configure-helper.sh
View file @
b7512d9c
...
...
@@ -457,6 +457,11 @@ prepare_etcd_manifest() {
sed
-i
-e
"s@{{ *hostname *}}@
$host_name
@g"
"
${
etcd_temp_file
}
"
sed
-i
-e
"s@{{ *etcd_cluster *}}@
$etcd_cluster
@g"
"
${
etcd_temp_file
}
"
sed
-i
-e
"s@{{ *storage_backend *}}@
${
STORAGE_BACKEND
:-}
@g"
"
${
temp_file
}
"
if
[[
"
${
STORAGE_BACKEND
:-}
"
==
"etcd3"
]]
;
then
sed
-i
-e
"s@{{ *quota_bytes *}}@--quota-backend-bytes=4294967296@g"
"
${
temp_file
}
"
else
sed
-i
-e
"s@{{ *quota_bytes *}}@@g"
"
${
temp_file
}
"
fi
sed
-i
-e
"s@{{ *cluster_state *}}@
$cluster_state
@g"
"
${
etcd_temp_file
}
"
if
[[
-n
"
${
ETCD_IMAGE
:-}
"
]]
;
then
sed
-i
-e
"s@{{ *pillar
\.
get('etcd_docker_tag', '
\(
.*
\)
') *}}@
${
ETCD_IMAGE
}
@g"
"
${
etcd_temp_file
}
"
...
...
cluster/saltbase/salt/etcd/etcd.manifest
View file @
b7512d9c
...
...
@@ -15,6 +15,10 @@
{% set etcd_cluster = vars.etcd_cluster -%}
{% set cluster_state = vars.cluster_state -%}
{% set storage_backend = pillar.get('storage_backend', 'etcd2') -%}
{% set quota_bytes = '' -%}
{% if pillar.get('storage_backend', 'etcd2') == 'etcd3' -%}
{% set quota_bytes = '--quota-backend-bytes=4294967296' -%}
{% endif -%}
{
"apiVersion": "v1",
...
...
@@ -37,7 +41,7 @@
"command": [
"/bin/sh",
"-c",
"if [ -e /usr/local/bin/migrate-if-needed.sh ]; then /usr/local/bin/migrate-if-needed.sh 1>>/var/log/etcd{{ suffix }}.log 2>&1; fi; /usr/local/bin/etcd --name etcd-{{ hostname }} --listen-peer-urls http://{{ hostname }}:{{ server_port }} --initial-advertise-peer-urls http://{{ hostname }}:{{ server_port }} --advertise-client-urls http://127.0.0.1:{{ port }} --listen-client-urls http://127.0.0.1:{{ port }} --data-dir /var/etcd/data{{ suffix }} --initial-cluster-state {{ cluster_state }} --initial-cluster {{ etcd_cluster }} 1>>/var/log/etcd{{ suffix }}.log 2>&1"
"if [ -e /usr/local/bin/migrate-if-needed.sh ]; then /usr/local/bin/migrate-if-needed.sh 1>>/var/log/etcd{{ suffix }}.log 2>&1; fi; /usr/local/bin/etcd --name etcd-{{ hostname }} --listen-peer-urls http://{{ hostname }}:{{ server_port }} --initial-advertise-peer-urls http://{{ hostname }}:{{ server_port }} --advertise-client-urls http://127.0.0.1:{{ port }} --listen-client-urls http://127.0.0.1:{{ port }}
{{ quota_bytes }}
--data-dir /var/etcd/data{{ suffix }} --initial-cluster-state {{ cluster_state }} --initial-cluster {{ etcd_cluster }} 1>>/var/log/etcd{{ suffix }}.log 2>&1"
],
"env": [
{ "name": "TARGET_STORAGE",
...
...
hack/verify-flags/exceptions.txt
View file @
b7512d9c
...
...
@@ -40,6 +40,7 @@ cluster/rackspace/util.sh: local node_ip=$(nova show --minimal ${NODE_NAMES[$
cluster/saltbase/salt/cluster-autoscaler/cluster-autoscaler.manifest:{% set params = pillar['autoscaler_mig_config'] + " " + cloud_config -%}
cluster/saltbase/salt/etcd/etcd.manifest: "value": "{{ storage_backend }}"
cluster/saltbase/salt/etcd/etcd.manifest:{% set storage_backend = pillar.get('storage_backend', 'etcd2') -%}
cluster/saltbase/salt/etcd/etcd.manifest:{% if pillar.get('storage_backend', 'etcd2') == 'etcd3' -%}
cluster/saltbase/salt/kube-admission-controls/init.sls:{% if 'LimitRanger' in pillar.get('admission_control', '') %}
cluster/saltbase/salt/kube-apiserver/kube-apiserver.manifest:{% set params = address + " " + storage_backend + " " + etcd_servers + " " + etcd_servers_overrides + " " + cloud_provider + " " + cloud_config + " " + runtime_config + " " + feature_gates + " " + admission_control + " " + target_ram_mb + " " + service_cluster_ip_range + " " + client_ca_file + basic_auth_file + " " + min_request_timeout + " " + enable_garbage_collector -%}
cluster/saltbase/salt/kube-controller-manager/kube-controller-manager.manifest:{% if pillar.get('enable_hostpath_provisioner', '').lower() == 'true' -%}
...
...
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