Files
toutoukan/docker/minio/minio-service.yaml
2025-09-15 22:08:11 +08:00

17 lines
485 B
YAML
Raw Permalink 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: minio-service
spec:
selector:
app: minio # 确保与 MinIO Pod 标签一致
ports:
- name: minio-api # 服务端口(用于 API 访问)
port: 9000
targetPort: 9000
nodePort: 32690 # 已有的 NodePort
- name: minio-console # 新增控制台端口
port: 9001
targetPort: 9001
nodePort: 32691 # 新增 NodePort30000-32767 范围内选一个未占用的)
type: NodePort