Mercurial > code > home > repos > infra
changeset 30:f867eecbcd18
template updates, i don't know
author | drewp@bigasterisk.com |
---|---|
date | Sat, 15 Jan 2022 14:45:23 -0800 |
parents | 911da5e10834 |
children | 34d0e8ec0376 |
files | templates/kube/config.yaml.j2 templates/kube/k3s.service.j2 templates/kube/node-config.yaml.j2 |
diffstat | 3 files changed, 32 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/templates/kube/config.yaml.j2 Sat Jan 15 14:45:01 2022 -0800 +++ b/templates/kube/config.yaml.j2 Sat Jan 15 14:45:23 2022 -0800 @@ -1,7 +1,7 @@ debug: true write-kubeconfig-mode: '640' bind-address: {{ master_ip }} -node-external-ip: {{ master_ip }} -node-ip: {{ master_ip }} +node-ip: {{ wg_ip }} + disable: - traefik \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/kube/k3s.service.j2 Sat Jan 15 14:45:23 2022 -0800 @@ -0,0 +1,26 @@ +# written by pyinfra + +[Unit] +Description=Lightweight Kubernetes +Documentation=https://k3s.io +After=network-online.target + +[Service] +Type=notify +ExecStartPre=-/sbin/modprobe br_netfilter +ExecStartPre=-/sbin/modprobe overlay +ExecStart=/usr/local/bin/k3s {{ role }} --config /etc/k3s_config.yaml +KillMode=process +Delegate=yes +# Having non-zero Limit*s causes performance problems due to accounting overhead +# in the kernel. We recommend using cgroups to do container-local accounting. +LimitNOFILE=1048576 +LimitNPROC=infinity +LimitCORE=infinity +TasksMax=infinity +TimeoutStartSec=0 +Restart=always +RestartSec=5s + +[Install] +WantedBy=multi-user.target