55 lines
1.5 KiB
Markdown
55 lines
1.5 KiB
Markdown
|
|
# 1. 在Azure上创建VM
|
|
一些关键配置按照下面图中设置,其他配置按照默认值即可
|
|

|
|

|
|

|
|

|
|
|
|
# 2. 登录新VM
|
|
|
|
在Azure上成功添加新VM后,新VM会有一个Private Ip
|
|
|
|

|
|
|
|
基于Freeleaps堡垒机登录新VM
|
|
|
|
1. 登录Freeleaps堡垒机
|
|
```commandline
|
|
ssh -o StrictHostKeyChecking=no -l xxxx@mathmast.com jumper.mathmast.com # 需要找jet添加堡垒机登录权限并且询问ssh密码
|
|
|
|
```
|
|

|
|
|
|
2. 在Freeleaps堡垒机上登录新VM
|
|
|
|
```commandline
|
|
ssh freeleaps@10.10.1.4 # 密码是你添加VM时设置的密码
|
|
```
|
|

|
|
|
|
# 3. 为新VM加域
|
|
> 加域是为了确保可以通过 xxx@mathmast.com账号登录新VM
|
|
|
|
加域流程参考:https://learn.microsoft.com/zh-cn/entra/identity/domain-services/join-ubuntu-linux-vm
|
|
|
|
不太确认的配置值,可以登录一个已经配置好的机器,参考上面的配置
|
|
|
|
关键配置值参考如下
|
|
|
|

|
|
|
|
下面这一步需要为找好wwwadmin@MATHMAST.COM设置密码,密码就用Freeleaps@2021
|
|

|
|
|
|
```commandline
|
|
# 使用域账号登录新节点
|
|
sudo ssh -l wwwadmin@mathmast.com 10.10.1.4
|
|
```
|
|

|
|
|
|
至此,新VM可以通过域账号登录了
|
|
|
|
# 4. 将新机器添加为K8s节点
|
|
> 需要在堡垒机jumper.mathmast.com上执行
|
|
参考:[README.md](ansible/README.md) |