dbsa@dbsa-X406UA:~$ ssh -oHostKeyAlgorithms=+rsa-sha2-512 root@172.26.60.100
The authenticity of host '172.26.60.100 (172.26.60.100)' can't be established.
ED25519 key fingerprint is SHA256:qIfngk/Pt0KLMmQ1S9ycanYKc8QI+PIvi+b3l9bALs4.
This host key is known by the following other names/addresses:
~/.ssh/known_hosts:1123: [hashed name]
~/.ssh/known_hosts:1126: [hashed name]
~/.ssh/known_hosts:1140: [hashed name]
~/.ssh/known_hosts:1193: [hashed name]
~/.ssh/known_hosts:1270: [hashed name]
~/.ssh/known_hosts:1271: [hashed name]
~/.ssh/known_hosts:1272: [hashed name]
~/.ssh/known_hosts:1295: [hashed name]
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '172.26.60.100' (ED25519) to the list of known hosts.
root@172.26.60.100's password:
Welcome to Ubuntu 24.04 LTS (GNU/Linux 6.8.0-31-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/pro
System information as of Mon Oct 28 04:09:11 AM UTC 2024
System load: 0.0 Processes: 247
Usage of /: 42.4% of 9.75GB Users logged in: 0
Memory usage: 6% IPv4 address for ens160: 172.26.60.250
Swap usage: 0%
Expanded Security Maintenance for Applications is not enabled.
0 updates can be applied immediately.
Enable ESM Apps to receive additional future security updates.
See https://ubuntu.com/esm or run: sudo pro status
The list of available updates is more than a week old.
To check for new updates run: sudo apt update
Last login: Thu May 2 04:48:57 2024 from 172.17.10.153
root@ubuntu:~# df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 392M 1.2M 391M 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 9.8G 4.2G 5.1G 45% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/sda2 1.8G 95M 1.6G 6% /boot
tmpfs 392M 12K 392M 1% /run/user/0
root@ubuntu:~# curl -sL https://talos.dev/install | sh
Downloading talosctl-linux-amd64...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 81.1M 100 81.1M 0 0 1718k 0 0:00:48 0:00:48 --:--:-- 1690k
Download complete!
Validating checksum...
Checksum valid.
talosctl was successfully installed
Installed version:
Client:
Tag: v1.8.1
SHA: 477752fe
Built:
Go version: go1.22.8
OS/Arch: linux/amd64
Server:
Now run:
talosctl cluster create # install a local test cluster
talosctl dashboard # If you have created a cluster, launch the dashboard
Looking for more? Visit https://talos.dev/latest
root@ubuntu:~# apt-get install dialog
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
dialog
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 303 kB of archives.
After this operation, 1261 kB of additional disk space will be used.
Get:1 http://id.archive.ubuntu.com/ubuntu noble/universe amd64 dialog amd64 1.3-20240101-1 [303 kB]
Fetched 303 kB in 1s (455 kB/s)
Selecting previously unselected package dialog.
(Reading database ... 83309 files and directories currently installed.)
Preparing to unpack .../dialog_1.3-20240101-1_amd64.deb ...
Unpacking dialog (1.3-20240101-1) ...
Setting up dialog (1.3-20240101-1) ...
Processing triggers for man-db (2.12.0-4build2) ...
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
root@ubuntu:~# apt-get install nmap
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libblas3 liblinear4 liblua5.4-0 libssh2-1t64 nmap-common
Suggested packages:
liblinear-tools liblinear-dev ncat ndiff zenmap
The following NEW packages will be installed:
libblas3 liblinear4 liblua5.4-0 libssh2-1t64 nmap nmap-common
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 6452 kB of archives.
After this operation, 28.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://id.archive.ubuntu.com/ubuntu noble/main amd64 libblas3 amd64 3.12.0-3build1 [238 kB]
Get:2 http://id.archive.ubuntu.com/ubuntu noble/universe amd64 liblinear4 amd64 2.3.0+dfsg-5build1 [42.3 kB]
Get:3 http://id.archive.ubuntu.com/ubuntu noble/main amd64 liblua5.4-0 amd64 5.4.6-3build2 [166 kB]
Get:4 http://id.archive.ubuntu.com/ubuntu noble/main amd64 libssh2-1t64 amd64 1.11.0-4.1build2 [120 kB]
Get:5 http://id.archive.ubuntu.com/ubuntu noble/universe amd64 nmap-common all 7.94+git20230807.3be01efb1+dfsg-3build2 [4192 kB]
Get:6 http://id.archive.ubuntu.com/ubuntu noble/universe amd64 nmap amd64 7.94+git20230807.3be01efb1+dfsg-3build2 [1694 kB]
Fetched 6452 kB in 6s (1094 kB/s)
Selecting previously unselected package libblas3:amd64.
(Reading database ... 83468 files and directories currently installed.)
Preparing to unpack .../0-libblas3_3.12.0-3build1_amd64.deb ...
Unpacking libblas3:amd64 (3.12.0-3build1) ...
Selecting previously unselected package liblinear4:amd64.
Preparing to unpack .../1-liblinear4_2.3.0+dfsg-5build1_amd64.deb ...
Unpacking liblinear4:amd64 (2.3.0+dfsg-5build1) ...
Selecting previously unselected package liblua5.4-0:amd64.
Preparing to unpack .../2-liblua5.4-0_5.4.6-3build2_amd64.deb ...
Unpacking liblua5.4-0:amd64 (5.4.6-3build2) ...
Selecting previously unselected package libssh2-1t64:amd64.
Preparing to unpack .../3-libssh2-1t64_1.11.0-4.1build2_amd64.deb ...
Unpacking libssh2-1t64:amd64 (1.11.0-4.1build2) ...
Selecting previously unselected package nmap-common.
Preparing to unpack .../4-nmap-common_7.94+git20230807.3be01efb1+dfsg-3build2_all.deb ...
Unpacking nmap-common (7.94+git20230807.3be01efb1+dfsg-3build2) ...
Selecting previously unselected package nmap.
Preparing to unpack .../5-nmap_7.94+git20230807.3be01efb1+dfsg-3build2_amd64.deb ...
Unpacking nmap (7.94+git20230807.3be01efb1+dfsg-3build2) ...
Setting up libblas3:amd64 (3.12.0-3build1) ...
update-alternatives: using /usr/lib/x86_64-linux-gnu/blas/libblas.so.3 to provide /usr/lib/x86_64-linux-gnu/libblas.so.3 (libblas.so.3-x86_64-linux-gnu) in auto mode
Setting up nmap-common (7.94+git20230807.3be01efb1+dfsg-3build2) ...
Setting up liblua5.4-0:amd64 (5.4.6-3build2) ...
Setting up libssh2-1t64:amd64 (1.11.0-4.1build2) ...
Setting up liblinear4:amd64 (2.3.0+dfsg-5build1) ...
Setting up nmap (7.94+git20230807.3be01efb1+dfsg-3build2) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.1) ...
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
root@ubuntu:~# curl -LO https://github.com/aenix-io/talos-bootstrap/raw/master/talos-bootstrap
chmod +x ./talos-bootstrap
sudo mv ./talos-bootstrap /usr/local/bin/talos-bootstrap
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 21727 100 21727 0 0 26555 0 --:--:-- --:--:-- --:--:-- 26555
root@ubuntu:~# talos
talos-bootstrap talosctl
root@ubuntu:~# mkdir cozystack
root@ubuntu:~# cd cozystack/
root@ubuntu:~/cozystack# talos-bootstrap
USAGE:
talos-bootstrap ACTION [OPTIONS]
ACTIONS:
help Show this help message.
install Setup a node for a new or existing cluster.
upgrade Upgrade a node in an existing cluster.
reset Reset and remove a node from an existing cluster.
reboot Reboot a node.
shutdown Shutdown a node.
dashboard Open dashboard for a node.
OPTIONS:
-n, --node <address> Node address
root@ubuntu:~/cozystack# talos-bootstrap install
root@ubuntu:~/cozystack# export KUBECONFIG=kubeconfig
root@ubuntu:~/cozystack# curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 138 100 138 0 0 487 0 --:--:-- --:--:-- --:--:-- 487
100 53.7M 100 53.7M 0 0 2224k 0 0:00:24 0:00:24 --:--:-- 2164k
root@ubuntu:~/cozystack# chmod +x kubectl
root@ubuntu:~/cozystack# sudo mv kubectl /usr/local/bin/
root@ubuntu:~/cozystack# kubectl get node
NAME STATUS ROLES AGE VERSION
talos1 Ready control-plane 11m v1.31.1
talos2 Ready control-plane 7m3s v1.31.1
talos3 Ready control-plane 3m42s v1.31.1
root@ubuntu:~/cozystack#
====================================================================
https://github.com/aenix-io/talos-bootstrap?tab=readme-ov-file
Repository files navigation
An interactive script for bootstrapping Kubernetes clusters on Talos OS.
Example: bootstrap full-feature Kubernetes cluster in 5 minutes:
Install dependencies:
talosctl
(>=1.6.0)dialog
nmap
Install talos-bootstrap:
curl -LO https://github.com/aenix-io/talos-bootstrap/raw/master/talos-bootstrap
chmod +x ./talos-bootstrap
sudo mv ./talos-bootstrap /usr/local/bin/talos-bootstrap
- Boot your nodes with Talos in maintenance mode.
(booting from ISO or PXE using matchbox is the best option) - Create a directory for holding your cluster configuration.
- Run
talos-bootstrap
command for every node in your cluster.
USAGE:
talos-bootstrap ACTION [OPTIONS]
ACTIONS:
help Show this help message.
install Setup a node for a new or existing cluster.
upgrade Upgrade a node in an existing cluster.
reset Reset and remove a node from an existing cluster.
reboot Reboot a node.
shutdown Shutdown a node.
dashboard Open dashboard for a node.
OPTIONS:
-n, --node <address> Node address
You can specify your customizations in one of the following files:
patch.yaml
- common settings used for all nodes.patch-controlplane.yaml
- settings used for controlplane nodes onlypatch-worker.yaml
- settings used for worker nodes only
Read the Configuration Patches documentation for more details.
Looking for enhanced, non-interactive version of talos-bootstrap?
Take a look at Talm project.
Andrei Kvapil kvapss@gmail.com
Licensed under Apache 2.0 License
Tidak ada komentar:
Posting Komentar