Skip to content

Commit fa26938

Browse files
committed
add etcd_quota_backend_bytes
1 parent b4b7e4d commit fa26938

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

manifests/config/kubeadm.pp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@
101101
# An integer or time string (i.e.: "5m") can be used in case of "periodic". Only integer allowed in case of "revision"
102102
# Integer or String
103103
# Defaults to 0 (disabled)
104+
# @param etcd_quota_backend_bytes
105+
# Raise alarms when backend size exceeds the given quota.
106+
# An string. set a very small 16MB quota 16*1024*1024
107+
# Default to 0 (size 2G )
104108
# @param api_server_count
105109
# Defaults to undef
106110
# @param etcd_version
@@ -255,6 +259,7 @@
255259
Integer $etcd_max_wals = $kubernetes::etcd_max_wals,
256260
Integer $etcd_max_request_bytes = $kubernetes::etcd_max_request_bytes,
257261
Optional[String] $etcd_listen_metric_urls = $kubernetes::etcd_listen_metric_urls,
262+
Optional[String] $etcd_quota_backend_bytes = $kubernetes::etcd_quota_backend_bytes,
258263
String $token = $kubernetes::token,
259264
String $ttl_duration = $kubernetes::ttl_duration,
260265
String $discovery_token_hash = $kubernetes::discovery_token_hash,

manifests/init.pp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,10 @@
230230
# This will tell etcd how many WAL files to be kept
231231
# Defaults to 5
232232
#
233+
# [*etcd_quota_backend_bytes*]
234+
# Raise alarms when backend size exceeds the given quota (0 defaults to low space quota).
235+
# Default to undef
236+
#
233237
# [*etcd_max_request_bytes*]
234238
# This will tell etcd the maximum size of a request in bytes
235239
# Defaults to 1572864
@@ -637,6 +641,7 @@
637641
Variant[String, Integer] $etcd_compaction_retention = 0,
638642
Integer $etcd_max_wals = 5,
639643
Integer $etcd_max_request_bytes = 1572864,
644+
Optional[String] $etcd_quota_backend_bytes = undef,
640645
Optional[String] $etcd_listen_metric_urls = undef,
641646
Optional[String] $etcd_ca_key = undef,
642647
Optional[String] $etcd_ca_crt = undef,

metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
{
1616
"name": "puppetlabs-apt",
17-
"version_requirement": ">= 10.0.0"
17+
"version_requirement": ">= 10.0.0 < 11.0.0"
1818
},
1919
{
2020
"name": "puppet-archive",
@@ -65,7 +65,7 @@
6565
"requirements": [
6666
{
6767
"name": "puppet",
68-
"version_requirement": ">= 7.0.0 < 9.0.0"
68+
"version_requirement": ">= 7.0.0 < 8.0.0"
6969
}
7070
],
7171
"pdk-version": "3.2.0",

templates/etcd/etcd.service.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ ExecStart=/usr/local/bin/etcd --name <%= @etcd_hostname %> \
4343
--max-request-bytes <%= @etcd_max_request_bytes %> \
4444
<%- if @etcd_listen_metric_urls -%>
4545
--listen-metrics-urls <%= @etcd_listen_metric_urls %> \
46+
<%- end -%>
47+
<%- if @etcd_quota_backend_bytes -%>
48+
--quota-backend-bytes <%= @etcd_quota_backend_bytes %> \
4649
<%- end -%>
4750
--max-wals <%= @etcd_max_wals %>
4851

0 commit comments

Comments
 (0)