mirror of https://github.com/k3s-io/k3s
Configurable etcd quota backend bytes
parent
d8605eb7eb
commit
333d196995
|
@ -833,6 +833,11 @@ EOF
|
|||
if [ -n "${ETCD_COMPACTION_INTERVAL_SEC:-}" ]; then
|
||||
cat >>$file <<EOF
|
||||
ETCD_COMPACTION_INTERVAL_SEC: $(yaml-quote ${ETCD_COMPACTION_INTERVAL_SEC})
|
||||
EOF
|
||||
fi
|
||||
if [ -n "${ETCD_QUOTA_BACKEND_BYTES:-}" ]; then
|
||||
cat >>$file <<EOF
|
||||
ETCD_QUOTA_BACKEND_BYTES: $(yaml-quote ${ETCD_QUOTA_BACKEND_BYTES})
|
||||
EOF
|
||||
fi
|
||||
if [ -n "${APISERVER_TEST_ARGS:-}" ]; then
|
||||
|
|
|
@ -1393,7 +1393,7 @@ function prepare-etcd-manifest {
|
|||
sed -i -e "s@{{ *pillar\.get('storage_backend', '\(.*\)') *}}@\1@g" "${temp_file}"
|
||||
fi
|
||||
if [[ "${STORAGE_BACKEND:-${default_storage_backend}}" == "etcd3" ]]; then
|
||||
sed -i -e "s@{{ *quota_bytes *}}@--quota-backend-bytes=4294967296@g" "${temp_file}"
|
||||
sed -i -e "s@{{ *quota_bytes *}}@--quota-backend-bytes=${ETCD_QUOTA_BACKEND_BYTES:-4294967296}@g" "${temp_file}"
|
||||
else
|
||||
sed -i -e "s@{{ *quota_bytes *}}@@g" "${temp_file}"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue