Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #46 from alekc/patch-kubelet-extra-args
Browse files Browse the repository at this point in the history
Added support for KUBELET_EXTRA_ARGS
  • Loading branch information
stefanprodan authored Jan 26, 2019
2 parents e243990 + 6378cd5 commit 7829b91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions nodes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ resource "scaleway_server" "k8s_node" {
"export ubuntu_version=$(echo -n ${var.ubuntu_version} | cut -d \" \" -f 2 | awk '{print tolower($0)}')",
"chmod +x /tmp/docker-install.sh && /tmp/docker-install.sh $${ubuntu_version} ${var.arch} ${var.docker_version}",
"chmod +x /tmp/kubeadm-install.sh && /tmp/kubeadm-install.sh ${var.k8s_version}",
"echo 'KUBELET_EXTRA_ARGS=${var.kubelet_extra_args}' > /etc/default/kubelet",
"${data.external.kubeadm_join.result.command}",
]
}
Expand Down
4 changes: 4 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,7 @@ variable "kubeadm_verbosity" {
description = "The verbosity level of the kubeadm init logs"
}

variable "kubelet_extra_args" {
default = ""
description = "Extra arguments used by kubelet systemd"
}

0 comments on commit 7829b91

Please sign in to comment.