fix k3s scripts

This commit is contained in:
jerger 2022-11-04 12:47:26 +01:00
parent 30a4e99660
commit fe83442708
2 changed files with 4 additions and 4 deletions

View file

@ -7,8 +7,8 @@ function usage() {
} }
function main() { function main() {
local cluster_name="${1}"; shift local cluster_name="${1}";
local domain_name="${1:-meissa-gmbh.de}"; shift local domain_name="${2:-meissa-gmbh.de}";
/usr/local/bin/k3s-create-context.sh ${cluster_name} ${domain_name} /usr/local/bin/k3s-create-context.sh ${cluster_name} ${domain_name}
kubectl config use-context ${cluster_name} kubectl config use-context ${cluster_name}

View file

@ -8,8 +8,8 @@ function usage() {
function main() { function main() {
local cluster_name="${1}"; shift local cluster_name="${1}";
local domain_name="${1:-meissa-gmbh.de}"; shift local domain_name="${2:-meissa-gmbh.de}";
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${cluster_name}.${domain_name} \ ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${cluster_name}.${domain_name} \
"cat /etc/rancher/k3s/k3s.yaml" | \ "cat /etc/rancher/k3s/k3s.yaml" | \