Mercurial > code > home > repos > infra
comparison kube.py @ 142:61f49b60a882
i now think tainting was wrong since it blocked most jobs from using the node. switched to affinity.
author | drewp@bigasterisk.com |
---|---|
date | Tue, 14 Feb 2023 15:05:29 -0800 |
parents | 33bb66488545 |
children | 2065998876e4 |
comparison
equal
deleted
inserted
replaced
141:64fe74f0005f | 142:61f49b60a882 |
---|---|
103 # user confusions: https://github.com/rancher/k3s/issues/1802 | 103 # user confusions: https://github.com/rancher/k3s/issues/1802 |
104 files.template(src='templates/kube/registries.yaml.j2', dest='/etc/rancher/k3s/registries.yaml') | 104 files.template(src='templates/kube/registries.yaml.j2', dest='/etc/rancher/k3s/registries.yaml') |
105 # also note that podman dropped the default `docker.io/` prefix on image names (see https://unix.stackexchange.com/a/701785/419418) | 105 # also note that podman dropped the default `docker.io/` prefix on image names (see https://unix.stackexchange.com/a/701785/419418) |
106 config_and_run_service() | 106 config_and_run_service() |
107 | 107 |
108 if host.name == 'dash': | |
109 server.shell("kubectl taint nodes --overwrite dash hardware=dash_zigbee:NoSchedule") | |
110 | |
111 if host.name in admin_from: | 108 if host.name in admin_from: |
112 files.directory(path='/etc/rancher/k3s') | 109 files.directory(path='/etc/rancher/k3s') |
113 install_skaffold() | 110 install_skaffold() |
114 files.link(path='/usr/local/bin/kubectl', target='/usr/local/bin/k3s') | 111 files.link(path='/usr/local/bin/kubectl', target='/usr/local/bin/k3s') |
115 files.directory(path='/home/drewp/.kube', user='drewp', group='drewp') | 112 files.directory(path='/home/drewp/.kube', user='drewp', group='drewp') |