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

Commit

Permalink
add support for server disable-kube-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
poblin-orange committed Apr 24, 2023
1 parent e9d5f16 commit fb01c43
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jobs/k3s-server/spec
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ properties:
k3s.disable-network-policy:
description: "(components) Disable k3s default network policy controller"

k3s.disable-kube-proxy:
description: "(components) Disable running kube-proxy"

k3s.token:
description: (cluster) Shared secret used to join a server or agent to a cluster [$K3S_TOKEN]

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

<% if_p('k3s.disable-kube-proxy') do |value| %>
export FLAGS="$FLAGS --disable-kube-proxy"
<% end %>




<% if_p('k3s.node-labels') do |value| %>
<% p('k3s.node-labels').each do |label| %>
Expand Down

0 comments on commit fb01c43

Please sign in to comment.