generated from mrsimonemms/new
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(hetzner): add static worker nodes to the cluster
- Loading branch information
1 parent
c565090
commit 42f423e
Showing
7 changed files
with
194 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#cloud-config | ||
|
||
package_reboot_if_required: true | ||
package_update: true | ||
package_upgrade: true | ||
packages: | ||
- curl | ||
runcmd: | ||
- [service, sshd, restart] | ||
- [rm, -f, /root/.ssh/authorized_keys] | ||
- chown ${user}:${user} "/home/${user}" | ||
- curl -sfL ${k3s_download_url} | INSTALL_K3S_EXEC="agent" sh - | ||
timezone: UTC | ||
users: | ||
- default | ||
- name: "${user}" | ||
gecos: "${user}" | ||
sudo: ALL=(ALL) NOPASSWD:ALL | ||
lock_passwd: true | ||
shell: /bin/bash | ||
ssh_authorized_keys: | ||
- "${publicKey}" | ||
write_files: | ||
- path: /etc/ssh/sshd_config.d/ssh.conf | ||
content: | | ||
PasswordAuthentication no | ||
PermitRootLogin no | ||
Port ${sshPort} | ||
- path: /etc/environment | ||
content: | | ||
KUBECONFIG="/etc/rancher/k3s/k3s.yaml" | ||
append: true | ||
- path: /etc/rancher/k3s/config.yaml | ||
content: | | ||
${indent(6, yamlencode(k3s_config))} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters