Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions manifests/config/kubeadm.pp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@
# An integer or time string (i.e.: "5m") can be used in case of "periodic". Only integer allowed in case of "revision"
# Integer or String
# Defaults to 0 (disabled)
# @param etcd_quota_backend_bytes
# Raise alarms when backend size exceeds the given quota.
# An string. set a very small 16MB quota 16*1024*1024
# Default to 0 (size 2G )
# @param api_server_count
# Defaults to undef
# @param etcd_version
Expand Down Expand Up @@ -255,6 +259,7 @@
Integer $etcd_max_wals = $kubernetes::etcd_max_wals,
Integer $etcd_max_request_bytes = $kubernetes::etcd_max_request_bytes,
Optional[String] $etcd_listen_metric_urls = $kubernetes::etcd_listen_metric_urls,
Optional[String] $etcd_quota_backend_bytes = $kubernetes::etcd_quota_backend_bytes,
String $token = $kubernetes::token,
String $ttl_duration = $kubernetes::ttl_duration,
String $discovery_token_hash = $kubernetes::discovery_token_hash,
Expand Down
5 changes: 5 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@
# This will tell etcd how many WAL files to be kept
# Defaults to 5
#
# [*etcd_quota_backend_bytes*]
# Raise alarms when backend size exceeds the given quota (0 defaults to low space quota).
# Default to undef
#
# [*etcd_max_request_bytes*]
# This will tell etcd the maximum size of a request in bytes
# Defaults to 1572864
Expand Down Expand Up @@ -637,6 +641,7 @@
Variant[String, Integer] $etcd_compaction_retention = 0,
Integer $etcd_max_wals = 5,
Integer $etcd_max_request_bytes = 1572864,
Optional[String] $etcd_quota_backend_bytes = undef,
Optional[String] $etcd_listen_metric_urls = undef,
Optional[String] $etcd_ca_key = undef,
Optional[String] $etcd_ca_crt = undef,
Expand Down
3 changes: 3 additions & 0 deletions templates/etcd/etcd.service.erb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ ExecStart=/usr/local/bin/etcd --name <%= @etcd_hostname %> \
--max-request-bytes <%= @etcd_max_request_bytes %> \
<%- if @etcd_listen_metric_urls -%>
--listen-metrics-urls <%= @etcd_listen_metric_urls %> \
<%- end -%>
<%- if @etcd_quota_backend_bytes -%>
--quota-backend-bytes <%= @etcd_quota_backend_bytes %> \
<%- end -%>
--max-wals <%= @etcd_max_wals %>

Expand Down
Loading