feat: readme

This commit is contained in:
merlin
2025-10-16 17:32:48 +08:00
parent 947a0b085f
commit 30f99f78f2
5 changed files with 75 additions and 0 deletions

View File

@@ -2,9 +2,11 @@
**背景**
博主使用的架构是
用户-->中转服务器nginx反代-->wireguard-->rke2集群网关nginx
因为有中转tls握手需要在nginx实现一次
因为有wireguard自己会加密所以tls可以终止与中转服务器nginx
通过搜索资料得知这样也可以实现自动化利用scp和ssh创建一个pod监听tls证书生成
@@ -12,6 +14,7 @@
然后分成nginx需要的pem和key连同server配置块一同上传到中转服务器
scp需要登录用户对文件夹有写入权限这一点有时候比较难注意到
因此推荐使用sudo tee的方式这样可以在服务器配置该用户sudo某些指令不需要使用密码ssh连接使用bash更加方便
@@ -19,6 +22,7 @@ scp需要登录用户对文件夹有写入权限这一点有时候比较难
使用预先创建的ssh密钥或者让pod自己生成ssh密钥
自己创建的密钥打包进入容器后记得设置权限私钥600公钥644否则ssh-server不会使用
上传例如这样:
```
ssh_command = [