feat: add node
This commit is contained in:
parent
b3134726b2
commit
62a76e26ac
@ -1,55 +1,55 @@
|
|||||||
|
|
||||||
# 1. 在Azure上创建VM
|
# 1. Create VM on Azure
|
||||||
一些关键配置按照下面图中设置,其他配置按照默认值即可
|
Set key configurations according to the images below, other configurations can use default values
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
# 2. 登录新VM
|
# 2. Login to New VM
|
||||||
|
|
||||||
在Azure上成功添加新VM后,新VM会有一个Private Ip
|
After successfully adding a new VM on Azure, the new VM will have a Private IP
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
基于Freeleaps堡垒机登录新VM
|
Login to new VM through Freeleaps bastion host
|
||||||
|
|
||||||
1. 登录Freeleaps堡垒机
|
1. Login to Freeleaps bastion host
|
||||||
```commandline
|
```commandline
|
||||||
ssh -o StrictHostKeyChecking=no -l xxxx@mathmast.com jumper.mathmast.com # 需要找jet添加堡垒机登录权限并且询问ssh密码
|
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
|
||||||
|
|
||||||
```
|
```
|
||||||

|

|
||||||
|
|
||||||
2. 在Freeleaps堡垒机上登录新VM
|
2. Login to new VM from Freeleaps bastion host
|
||||||
|
|
||||||
```commandline
|
```commandline
|
||||||
ssh freeleaps@10.10.1.4 # 密码是你添加VM时设置的密码
|
ssh freeleaps@10.10.1.4 # Password is the one you set when adding the VM
|
||||||
```
|
```
|
||||||

|

|
||||||
|
|
||||||
# 3. 为新VM加域
|
# 3. Join New VM to Domain
|
||||||
> 加域是为了确保可以通过 xxx@mathmast.com账号登录新VM
|
> Joining domain is to ensure that you can login to the new VM using xxx@mathmast.com account
|
||||||
|
|
||||||
加域流程参考:https://learn.microsoft.com/zh-cn/entra/identity/domain-services/join-ubuntu-linux-vm
|
Domain joining process reference: https://learn.microsoft.com/zh-cn/entra/identity/domain-services/join-ubuntu-linux-vm
|
||||||
|
|
||||||
不太确认的配置值,可以登录一个已经配置好的机器,参考上面的配置
|
For uncertain configuration values, you can login to an already configured machine and refer to the configuration above
|
||||||
|
|
||||||
关键配置值参考如下
|
Key configuration values reference as follows
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
下面这一步需要为找好wwwadmin@MATHMAST.COM设置密码,密码就用Freeleaps@2021
|
For the step below, you need to set a password for wwwadmin@MATHMAST.COM, use Freeleaps@2021 as the password
|
||||||

|

|
||||||
|
|
||||||
```commandline
|
```commandline
|
||||||
# 使用域账号登录新节点
|
# Login to new node using domain account
|
||||||
sudo ssh -l wwwadmin@mathmast.com 10.10.1.4
|
sudo ssh -l wwwadmin@mathmast.com 10.10.1.4
|
||||||
```
|
```
|
||||||

|

|
||||||
|
|
||||||
至此,新VM可以通过域账号登录了
|
At this point, the new VM can be logged in using domain account
|
||||||
|
|
||||||
# 4. 将新机器添加为K8s节点
|
# 4. Add New Machine as K8s Node
|
||||||
> 需要在堡垒机jumper.mathmast.com上执行
|
> Need to execute on bastion host jumper.mathmast.com
|
||||||
参考:[README.md](ansible/README.md)
|
Reference: [README.md](ansible/README.md)
|
||||||
Loading…
Reference in New Issue
Block a user