apiVersion: apps/v1 kind: Deployment metadata: name: minio labels: app: minio spec: replicas: 1 selector: matchLabels: app: minio template: metadata: labels: app: minio spec: containers: - name: minio image: quay.io/minio/minio:latest command: - /bin/bash - -c args: - minio server /data --address "0.0.0.0:9000" --console-address :9090 ports: - containerPort: 9090 - containerPort: 9000 env: - name: TZ value: Asia/Shanghai volumeMounts: - mountPath: /data name: localvolume volumes: - name: localvolume nfs: path: /data/minio server: 10.9.12.250 --- apiVersion: v1 kind: Service metadata: name: minio-service spec: selector: app: minio type: NodePort ports: - name: http port: 9090 targetPort: 9090 nodePort: 30130 - name: https port: 9000 targetPort: 9000 nodePort: 30131