修改和新增
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2025-12-23 01:53:01 +08:00
parent 89a07bc062
commit b44594def6
17 changed files with 922 additions and 110 deletions

View File

@@ -61,17 +61,18 @@
name: nginx-ingress-1
namespace: default
spec:
ingressClassName: nginx # 通过 kubectl get ingressclass 查看
rules:
- host: example.com # 替换为你的域名
- host: example.com # 修改为自己的对外域名
http:
paths:
- path: /
pathType: Prefix
backend:
- backend:
service:
name: nginx-deployment-service-1
name: nginx-deployment-service-1 # Nginx Serice 名称
port:
number: 80
number: 80 # Nginx 端口
path: /
pathType: Prefix
tls:
- hosts:
- example.com # 替换为你的域名
@@ -87,17 +88,18 @@
nginx.ingress.kubernetes.io/canary: "true"
nginx.ingress.kubernetes.io/canary-weight: "10" # 10%流量到金丝雀
spec:
ingressClassName: nginx # 通过 kubectl get ingressclass 查看
rules:
- host: example.com # 替换为你的域名
- host: example.com # 修改为自己的对外域名
http:
paths:
- path: /
pathType: Prefix
backend:
- backend:
service:
name: nginx-deployment-service-2
name: nginx-deployment-service-2 # Nginx Serice 名称
port:
number: 80
number: 80 # Nginx 端口
path: /
pathType: Prefix
tls:
- hosts:
- example.com # 替换为你的域名