新增RustFs文档,修改了一些文件
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2025-12-25 00:39:45 +08:00
parent b44594def6
commit e5581862c5
10 changed files with 435 additions and 4 deletions

View File

@@ -0,0 +1,23 @@
> 本文作者:丁辉
# Ingress-Annotations参数记录
```yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
...
annotations:
# 不限制文件上传大小
nginx.ingress.kubernetes.io/proxy-body-size: "0"
# 告诉Ingress后端是HTTPS
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
# 跳过证书验证(自签名时)
nginx.ingress.kubernetes.io/proxy-ssl-verify: "off"
# cert-manager 自动生成证书参数
cert-manager.io/cluster-issuer: "letsencrypt-prod"
# 开启金丝雀
nginx.ingress.kubernetes.io/canary: "true"
# 10%流量到金丝雀
nginx.ingress.kubernetes.io/canary-weight: "10"
```

View File

@@ -0,0 +1,90 @@
> 本文作者:丁辉
>
# Ingress代理外部服务Teleport
## 准备
修改 Teleport 服务为 HTTP 协议
```yaml
proxy_service:
enabled: "yes"
web_listen_addr: 0.0.0.0:9443
public_addr: teleport.example.com:443 # 对外访问地址
# 删除如下内容
# https_keypairs:
# - key_file:
# cert_file:
# https_keypairs_reload_interval: 0s
# acme: {}
```
## 开启对外访问
1. Endpoints 对接外部 Teleport
```yaml
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Endpoints
metadata:
name: teleport-proxy
namespace: teleport
subsets:
- addresses:
- ip: 127.0.0.1 # 修改为 Teleport 服务器访问地址
ports:
- port: 9443
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: teleport-proxy
namespace: teleport
spec:
ports:
- port: 9443
targetPort: 9443
type: ClusterIP
EOF
```
2. 配置对外 Ingress
```yaml
cat <<EOF | kubectl apply -f -
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: teleport
namespace: teleport
annotations:
# 不限制文件上传大小
nginx.ingress.kubernetes.io/proxy-body-size: "0"
# 告诉Ingress后端是HTTP
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
labels:
app: teleport
spec:
rules:
- host: teleport.example.com
http:
paths:
- pathType: Prefix
backend:
service:
name: teleport-proxy
port:
number: 9443
path: /
tls:
- hosts:
- teleport.example.com
secretName: teleport-tls
EOF
```
3. 访问即可