2025-09-12 10:14:04 +00:00
2025-09-15 04:09:30 +00:00
# 1. Create VM on Azure
Set key configurations according to the images below, other configurations can use default values
2025-09-12 10:14:04 +00:00




2025-09-15 04:09:30 +00:00
# 2. Login to New VM
2025-09-12 10:14:04 +00:00
2025-09-15 04:09:30 +00:00
After successfully adding a new VM on Azure, the new VM will have a Private IP
2025-09-12 10:14:04 +00:00

2025-09-15 04:09:30 +00:00
Login to new VM through Freeleaps bastion host
2025-09-12 10:14:04 +00:00
2025-09-15 04:09:30 +00:00
1. Login to Freeleaps bastion host
2025-09-12 10:14:04 +00:00
```commandline
2025-09-15 04:09:30 +00:00
ssh -o StrictHostKeyChecking=no -l xxxx@mathmast.com jumper.mathmast.com # Need to ask jet to add bastion host login permission and ask for SSH password
2025-09-12 10:14:04 +00:00
```

2025-09-15 04:09:30 +00:00
2. Login to new VM from Freeleaps bastion host
2025-09-12 10:14:04 +00:00
```commandline
2025-09-15 04:09:30 +00:00
ssh freeleaps@10.10.1.4 # Password is the one you set when adding the VM
2025-09-12 10:14:04 +00:00
```

2025-09-15 04:09:30 +00:00
# 3. Join New VM to Domain
> Joining domain is to ensure that you can login to the new VM using xxx@mathmast.com account
2025-09-12 10:14:04 +00:00
2025-09-15 04:09:30 +00:00
Domain joining process reference: https://learn.microsoft.com/zh-cn/entra/identity/domain-services/join-ubuntu-linux-vm
2025-09-12 10:14:04 +00:00
2025-09-15 04:09:30 +00:00
For uncertain configuration values, you can login to an already configured machine and refer to the configuration above
2025-09-12 10:14:04 +00:00
2025-09-15 04:09:30 +00:00
Key configuration values reference as follows
2025-09-12 10:14:04 +00:00

2025-09-15 04:09:30 +00:00
For the step below, you need to set a password for wwwadmin@MATHMAST.COM, use Freeleaps@2021 as the password
2025-09-12 10:14:04 +00:00

```commandline
2025-09-15 04:09:30 +00:00
# Login to new node using domain account
2025-09-12 10:14:04 +00:00
sudo ssh -l wwwadmin@mathmast.com 10.10.1.4
```

2025-09-15 04:09:30 +00:00
At this point, the new VM can be logged in using domain account
2025-09-12 10:14:04 +00:00
2025-09-15 04:09:30 +00:00
# 4. Add New Machine as K8s Node
> Need to execute on bastion host jumper.mathmast.com
Reference: [README.md ](ansible/README.md )