Mercurial > code > home > repos > infra
diff kube.py @ 115:8012f6095220
update to current configs
author | drewp@bigasterisk.com |
---|---|
date | Sun, 30 Oct 2022 14:19:46 -0700 |
parents | 301869fa0ed6 |
children | 33bb66488545 |
line wrap: on
line diff
--- a/kube.py Sat Oct 29 21:34:50 2022 -0700 +++ b/kube.py Sun Oct 30 14:19:46 2022 -0700 @@ -9,14 +9,14 @@ server_ip = "10.5.0.1" server_node = 'bang' -nodes = ['slash', 'dash'] #, 'dash', 'frontbed', 'garage'] +nodes = ['plus', 'slash', 'dash'] #, 'frontbed', 'garage'] admin_from = ['bang', 'slash', 'dash'] # https://github.com/k3s-io/k3s/releases # 1.23.6 per https://github.com/cilium/cilium/issues/20331 -k3s_version = 'v1.23.6+k3s1' +k3s_version = 'v1.24.3+k3s1' # https://github.com/GoogleContainerTools/skaffold/releases -skaffold_version = 'v1.39.1' +skaffold_version = 'v2.0.1' def download_k3s(): @@ -105,12 +105,14 @@ # also note that podman dropped the default `docker.io/` prefix on image names (see https://unix.stackexchange.com/a/701785/419418) config_and_run_service() +if host.name == 'dash': + server.shell("kubectl taint nodes dash hardware=dash_zigbee:NoSchedule") + if host.name in admin_from: files.directory(path='/etc/rancher/k3s') install_skaffold() files.link(path='/usr/local/bin/kubectl', target='/usr/local/bin/k3s') files.directory(path='/home/drewp/.kube', user='drewp', group='drewp') - files.line(path="/home/drewp/.zshrc", line="KUBECONFIG", replace='export KUBECONFIG=/etc/rancher/k3s/k3s.yaml') # assumes our pyinfra process is running on server_node files.put(