22 lines
555 B
YAML
22 lines
555 B
YAML
# =========================================================
|
|
# Arcticnewone 生产部署 - Service
|
|
#
|
|
# 容器监听 3000 端口(Dockerfile 中 EXPOSE 3000),
|
|
# Service 暴露 80 端口,与团队 Ingress 模板的 backend port 80 保持一致。
|
|
# =========================================================
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: arcticnewone-svc
|
|
namespace: arcticnewone
|
|
labels:
|
|
app: arcticnewone
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: arcticnewone
|
|
ports:
|
|
- name: http
|
|
port: 80
|
|
targetPort: 3000
|