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

Commit

Permalink
set labels bosh.io/agent=true
Browse files Browse the repository at this point in the history
not possible to set node-role.kubernetes.io/worker since k8s 1.16
(security reason).
Adding this bosh.io label to help targeting agent nodes
  • Loading branch information
poblin-orange committed May 10, 2022
1 parent 8b7ca45 commit 6081c3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jobs/k3s-agent/templates/bin/ctl.erb
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ export FLAGS="$FLAGS --kubelet-arg=config=/var/vcap/jobs/k3s-agent/config/kubele
--node-label bosh.io/index=<%= spec.index %> \
--node-label bosh.io/address=<%= spec.ip %> \
--node-label bosh.io/id=<%= spec.id %> \
--node-label bosh.io/agent=true \
--node-label topology.kubernetes.io/zone=<%= spec.az %> \
--node-label node-role.kubernetes.io/worker=true \
$FLAGS \
$servers \
>> $LOG_DIR/k3s-agent.stdout.log \
Expand Down
1 change: 1 addition & 0 deletions jobs/k3s-server/templates/bin/ctl.erb
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export FLAGS="$FLAGS --kubelet-arg=config=/var/vcap/jobs/k3s-server/config/kubel
--node-label bosh.io/index=<%= spec.index %> \
--node-label bosh.io/address=<%= spec.ip %> \
--node-label bosh.io/id=<%= spec.id %> \
--node-label bosh.io/server=true \
--node-label topology.kubernetes.io/zone=<%= spec.az %> \
$FLAGS \
>> $LOG_DIR/k3s-server.stdout.log \
Expand Down

0 comments on commit 6081c3e

Please sign in to comment.