fix k3s scripts
This commit is contained in:
parent
30a4e99660
commit
fe83442708
2 changed files with 4 additions and 4 deletions
|
@ -7,8 +7,8 @@ function usage() {
|
|||
}
|
||||
|
||||
function main() {
|
||||
local cluster_name="${1}"; shift
|
||||
local domain_name="${1:-meissa-gmbh.de}"; shift
|
||||
local cluster_name="${1}";
|
||||
local domain_name="${2:-meissa-gmbh.de}";
|
||||
|
||||
/usr/local/bin/k3s-create-context.sh ${cluster_name} ${domain_name}
|
||||
kubectl config use-context ${cluster_name}
|
||||
|
|
|
@ -8,8 +8,8 @@ function usage() {
|
|||
|
||||
|
||||
function main() {
|
||||
local cluster_name="${1}"; shift
|
||||
local domain_name="${1:-meissa-gmbh.de}"; shift
|
||||
local cluster_name="${1}";
|
||||
local domain_name="${2:-meissa-gmbh.de}";
|
||||
|
||||
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${cluster_name}.${domain_name} \
|
||||
"cat /etc/rancher/k3s/k3s.yaml" | \
|
||||
|
|
Loading…
Reference in a new issue