-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump github.com/k0sproject/rig to v0.15.1
Signed-off-by: Kimmo Lehto <[email protected]>
- Loading branch information
Showing
6 changed files
with
153 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: k0sctl.k0sproject.io/v1beta1 | ||
kind: cluster | ||
spec: | ||
hosts: | ||
- role: controller | ||
uploadBinary: true | ||
openSSH: | ||
address: controller | ||
configPath: ssh/config | ||
- role: worker | ||
uploadBinary: true | ||
openSSH: | ||
address: worker | ||
port: 9023 | ||
configPath: ssh/config | ||
k0s: | ||
version: "${K0S_VERSION}" | ||
config: | ||
spec: | ||
telemetry: | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env sh | ||
|
||
K0SCTL_CONFIG=${K0SCTL_CONFIG:-"k0sctl-openssh.yaml"} | ||
|
||
set -e | ||
|
||
. ./smoke.common.sh | ||
trap cleanup_openssh EXIT | ||
|
||
cleanup_openssh() { | ||
cleanup | ||
[ -f "ssh/id_rsa_k0s" ] && rm -rf .ssh | ||
} | ||
|
||
deleteCluster | ||
createCluster | ||
|
||
echo "* Create SSH config" | ||
mkdir -p ssh | ||
cp id_rsa_k0s ssh/ | ||
cat <<EOF > ssh/config | ||
Host * | ||
StrictHostKeyChecking no | ||
UserKnownHostsFile /dev/null | ||
IdentityFile id_rsa_k0s | ||
User root | ||
Host controller | ||
Hostname 127.0.0.1 | ||
Port 9022 | ||
Host worker | ||
Hostname 127.0.0.1 | ||
Port 9023 | ||
EOF | ||
|
||
echo "* Starting apply" | ||
../k0sctl apply --config "${K0SCTL_CONFIG}" --debug | ||
echo "* Apply OK" | ||
|