ai-css/aicss_k8s/test/svc.yaml
2026-03-07 10:43:08 +00:00

15 lines
331 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: v1
kind: Service
metadata:
name: aicss-svc
namespace: xpink # 如果不是 default请改成你的 namespace
spec:
type: ClusterIP
selector:
app: aicss-s
ports:
- name: http
port: 80 # 对外提供的端口
targetPort: 8081 # 容器内部监听的端口
protocol: TCP