minio的k8s的单机部署
apiVersion: apps/v1
kind: Deployment
metadata:name: minionamespace: itshare
spec:replicas: 1selector:matchLabels:app: miniotemplate:metadata:labels:app: miniospec:containers:- name: minioimage: minio/minio:RELEASE.2022-10-15T19-57-03ZimagePullPolicy: IfNotPresentcommand:- /bin/sh- -c- minio server /data --console-address ":5000"ports:- name: datacontainerPort: 9000protocol: "TCP"- name: consolecontainerPort: 5000protocol: "TCP"resources:requests:memory: 512Micpu: 50mlimits:memory: 512Micpu: 100mvolumeMounts:- mountPath: /dataname: datavolumes:- name: datahostPath:path: /opt/itshare/minio/mydatatype: Directory---apiVersion: v1
kind: Service
metadata:name: minionamespace: itshare
spec:type: NodePortports:- name: dataport: 9000targetPort: 9000protocol: TCPnodePort: 39000- name: consoleport: 5000targetPort: 5000protocol: TCPnodePort: 39001selector:app: minio
有挂载的主机目录
nacos中的配置
前端访问的是30011对应的是5000端口