Skip to content

Commit

Permalink
Merge pull request #97 from utilitywarehouse/storage-node-labels
Browse files Browse the repository at this point in the history
Storage node labels
  • Loading branch information
ffilippopoulos authored Sep 30, 2019
2 parents 80a30a3 + d1b05ed commit 15be91e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/node-kubelet.service
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ExecStart=${kubelet_binary_path} \
--exit-on-lock-contention \
--kubeconfig=/var/lib/kubelet/kubeconfig \
--network-plugin=cni \
--node-labels=role=${role} \
--node-labels=${labels} \
%{ if taints != "" } --register-with-taints=${taints} \
%{ endif ~}
--lock-file=/var/run/lock/kubelet.lock \
Expand Down
4 changes: 2 additions & 2 deletions storage-node.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ data "template_file" "storage-node-kubelet" {
vars = {
kubelet_binary_path = "/opt/bin/kubelet"
cloud_provider = var.cloud_provider
role = "storage-node"
taints = "key=value:NoSchedule"
labels = "role=storage-node,node.longhorn.io/create-default-disk=true"
taints = "storage=longhorn:NoSchedule"
}
}

Expand Down
2 changes: 1 addition & 1 deletion worker.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ data "template_file" "worker-kubelet" {
vars = {
kubelet_binary_path = "/opt/bin/kubelet"
cloud_provider = var.cloud_provider
role = "worker"
labels = "role=worker"
taints = ""
}
}
Expand Down

0 comments on commit 15be91e

Please sign in to comment.