更新k8s deployment

This commit is contained in:
JACKYMYPERSON
2025-09-15 22:08:11 +08:00
parent 8ccf028ae4
commit cee789f31d
6 changed files with 76 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
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