File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,9 @@ properties:
160160 k3s.embedded-ha-etcd:
161161 description: if set, use embedded etcd in ha mode. requires an odd number of servers, overrides datastore-endpoints
162162
163+ k3s.etcd-args:
164+ description: (flags) Customized flag for etcd process
165+ default: []
163166
164167 k3s.datastore-endpoint:
165168 description: Specify etcd, Mysql, Postgres, or Sqlite (default) data source name
Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ case $1 in
140140< % end %>
141141< % end %>
142142
143+
143144< % if_p(' k3s.cluster-cidr' ) do | value| %>
144145 export FLAGS=" $FLAGS --cluster-cidr=<%= value %>"
145146< % end %>
@@ -207,6 +208,13 @@ export FLAGS="$FLAGS --prefer-bundled-bin"
207208# get bootstrap server in cluster
208209export BOOTSTRAP_SERVER=< %= link(' k3s-server' ).instances[0].address %>
209210
211+
212+ < % if_p(' k3s.etcd-args' ) do | value| %>
213+ < % p(' k3s.etcd-args' ).each do | flag| %>
214+ export FLAGS=" $FLAGS --etcd-arg=<%= flag %>"
215+ < % end %>
216+ < % end %>
217+
210218< % if_p(' k3s.embedded-ha-etcd' ) do | value| %>
211219
212220< % if spec.bootstrap %>
You can’t perform that action at this time.
0 commit comments