Last active
February 22, 2023 08:44
-
-
Save dgiebert/a3384c945128080e6c3a5a206a1e14ab to your computer and use it in GitHub Desktop.
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
#cloud-config | |
user: sles | |
package_update: true | |
package_upgrade: true | |
package_reboot_if_required: true | |
bootcmd: | |
- '[ -f /usr/bin/SUSEConnect ] && SUSEConnect -r <ActivationCode> -e <EmailAddress>' | |
packages: | |
- htop | |
- ncdu | |
- fzf | |
- bash-completion | |
- iptables | |
- open-iscsi | |
- nfs-client | |
- salt-minion | |
ssh_authorized_keys: | |
- ssh-ed25519 | |
write_files: | |
- path: /etc/salt/minion.d/master.conf | |
content: | | |
master: suma.suse | |
- path: /root/.bashrc | |
content: | | |
PATH=/var/lib/rancher/rke2/bin:$PATH | |
export KUBECONFIG=/etc/rancher/rke2/rke2.yaml | |
alias k=kubectl | |
complete -o default -F __start_kubectl k | |
source <(kubectl completion bash | sed 's#"${requestComp}" 2>/dev/null#"${requestComp}" 2>/dev/null | head -n -1 | fzf --multi=0 #g') | |
- path: /etc/sysctl.d/90-kubelet.conf | |
content: | | |
vm.panic_on_oom=0 | |
vm.overcommit_memory=1 | |
kernel.panic=10 | |
kernel.panic_on_oops=1 | |
kernel.keys.root_maxbytes=25000000 | |
- path: /etc/sysctl.d/90-networking.conf | |
content: | | |
net.ipv4.conf.all.forwarding = 1 | |
net.ipv6.conf.all.disable_ipv6 = 1 | |
net.ipv6.conf.default.disable_ipv6 = 1 | |
runcmd: | |
- sysctl -p /etc/sysctl.d/90-kubelet.conf /etc/sysctl.d/90-networking.conf | |
- systemctl enable --now salt-minion.service | |
- useradd -r -c "etcd user" -s /sbin/nologin -M etcd -U |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment