Compare commits
2 commits
c0e64096a8
...
7a506e07d4
Author | SHA1 | Date | |
---|---|---|---|
7a506e07d4 | |||
497fd9a45d |
3 changed files with 5 additions and 3 deletions
|
@ -8,7 +8,7 @@ function usage() {
|
|||
|
||||
function main() {
|
||||
local cluster_name="${1}";
|
||||
local domain_name="${2:-meissa-gmbh.de}";
|
||||
local domain_name="${2:-meissa.de}";
|
||||
|
||||
/usr/local/bin/k3s-create-context.sh ${cluster_name} ${domain_name}
|
||||
kubectl config use-context ${cluster_name}
|
||||
|
|
|
@ -4,8 +4,9 @@ set -o noglob
|
|||
|
||||
function main() {
|
||||
local cluster_name="${1}"; shift
|
||||
local domain_name="${1:-meissa.de}"; shift
|
||||
|
||||
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${cluster_name}.meissa-gmbh.de -L 8002:localhost:8002 -L 6443:192.168.5.1:6443
|
||||
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${cluster_name}.${domain_name} -L 8002:localhost:8002 -L 6443:192.168.5.1:6443
|
||||
}
|
||||
|
||||
main $1
|
||||
|
|
|
@ -4,8 +4,9 @@ set -o noglob
|
|||
|
||||
function main() {
|
||||
local cluster_name="${1}"; shift
|
||||
local domain_name="${1:-meissa.de}"; shift
|
||||
|
||||
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${cluster_name}.meissa-gmbh.de
|
||||
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${cluster_name}.${domain_name}
|
||||
}
|
||||
|
||||
main $1
|
||||
|
|
Loading…
Reference in a new issue