Files
2026-05-19 14:28:44 +08:00

72 lines
1.5 KiB
YAML

apiVersion: apps/v1
kind: StatefulSet
metadata:
namespace: bj-sh-uas-260511
name: helm-minio-fly
spec:
serviceName: helm-minio-fly
replicas: 1
selector:
matchLabels:
app: helm-minio-fly
template:
metadata:
labels:
app: helm-minio-fly
spec:
imagePullSecrets:
- name: harborsecret
affinity: {}
containers:
- name: minio
image: 192.168.3.31:8033/cmii/minio:RELEASE.2023-06-02T23-17-26Z
command: ["/bin/sh", "-c"]
args:
- minio server /data --console-address ":9001"
ports:
- containerPort: 9000
name: api
- containerPort: 9001
name: console
env:
- name: MINIO_ACCESS_KEY
value: "cmii"
- name: MINIO_SECRET_KEY
value: "B#923fC7mk"
volumeMounts:
- name: data
mountPath: /data
resources:
limits:
memory: 1Gi
cpu: "1"
requests:
memory: 200Mi
cpu: 200m
nodeSelector:
mysql-deploy: true
volumes:
- name: data
hostPath:
path: /data/minio-pv/
---
apiVersion: v1
kind: Service
metadata:
name: helm-minio-fly
namespace: bj-sh-uas-260511
spec:
selector:
app: helm-minio-fly
ports:
- name: api
port: 9000
targetPort: 9000
nodePort: 31090
- name: console
port: 9001
targetPort: 9001
nodePort: 31091
type: NodePort