imgsearcher/deploy/k8s/bj2/ingress.yaml
2025-04-14 16:03:20 +08:00

30 lines
899 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
# Ingress的名称
name: imgsearcher-ingress
# 部署的命名空间
namespace: bj2-dcloud
# Ingress的具体配置
spec:
# 指定使用nginx作为Ingress控制器
ingressClassName: nginx
# 定义路由规则
rules:
# 指定域名规则
- host: cloud-dev.d-robotics.cc # 访问域名,根据项目
# HTTP规则配置
http:
# 路径配置列表
paths:
# 单个路径规则配置
- path: /imgsearcherApi/ # URL路径前缀
pathType: Prefix # 路径匹配类型Prefix表示前缀匹配
# 后端服务配置
backend:
# 服务配置
service:
name: imgsearcher-api-service # 后端Service名称
port:
number: 80 # 后端Service端口