Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Add etcd-expose-metrics flag
Browse files Browse the repository at this point in the history
Ref:  #13
  • Loading branch information
gberche-orange committed Jan 31, 2024
1 parent 862be03 commit 1542069
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jobs/k3s-server/spec
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ properties:
k3s.embedded-ha-etcd:
description: if set, use embedded etcd in ha mode. requires an odd number of servers, overrides datastore-endpoints

k3s.etcd-expose-metrics:
description: "Expose etcd metrics to client interface (default: false)"
default: false


k3s.datastore-endpoint:
description: Specify etcd, Mysql, Postgres, or Sqlite (default) data source name

Expand Down
4 changes: 4 additions & 0 deletions jobs/k3s-server/templates/bin/ctl.erb
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ case $1 in
export FLAGS="$FLAGS --disable-kube-proxy"
<% end %>

<% if_p('k3s.etcd-expose-metrics') do |value| %>
export FLAGS="$FLAGS --etcd-expose-metrics=<%= value %>"
<% end %>




Expand Down

0 comments on commit 1542069

Please sign in to comment.